
char * __regparm3 fts5ExprPrintTcl(Fts5Config *pConfig,char *zNearsetCmd,Fts5ExprNode *pExpr)

{
  int *piVar1;
  int *piVar2;
  Fts5Config *pConfig_00;
  char *pcVar3;
  char *pcVar4;
  int *extraout_ECX;
  int iVar5;
  int iVar6;
  int unaff_EDI;
  undefined4 uVar7;
  int local_28;
  
  pConfig_00 = (Fts5Config *)__x86_get_pc_thunk_di();
  iVar5 = *extraout_ECX;
  if ((iVar5 == 9) || (iVar5 == 4)) {
    piVar1 = (int *)extraout_ECX[6];
    pcVar3 = fts5PrintfAppend((char *)0x0,&UNK_000826a2 + unaff_EDI,zNearsetCmd);
    if (pcVar3 != (char *)0x0) {
      piVar2 = (int *)piVar1[1];
      if (piVar2 != (int *)0x0) {
        zNearsetCmd = (char *)piVar2[1];
        if (*piVar2 == 1) {
          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);
        }
        else {
          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);
          if (1 < *(int *)piVar1[1]) {
            iVar5 = 1;
            do {
              zNearsetCmd = (char *)piVar2[iVar5 + 1];
              iVar5 = iVar5 + 1;
              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);
            } while (iVar5 < *(int *)piVar1[1]);
          }
          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);
        }
        if (pcVar3 == (char *)0x0) {
          return (char *)0x0;
        }
      }
      if (1 < piVar1[2]) {
        zNearsetCmd = (char *)*piVar1;
        pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);
        if (pcVar3 == (char *)0x0) {
          return (char *)0x0;
        }
      }
      pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd);
      if (pcVar3 != (char *)0x0) {
        if (piVar1[2] < 1) {
          return pcVar3;
        }
        local_28 = 0;
        while( true ) {
          iVar5 = piVar1[local_28 + 3];
          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);
          if (pcVar3 == (char *)0x0) break;
          if (0 < *(int *)(iVar5 + 0x10)) {
            iVar6 = 0;
            do {
              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);
              if (iVar6 == 0) {
                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);
              }
              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);
              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);
              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {
                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);
              }
              iVar6 = iVar6 + 1;
              if (pcVar3 == (char *)0x0) {
                return (char *)0x0;
              }
            } while (iVar6 < *(int *)(iVar5 + 0x10));
          }
          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);
          if (pcVar3 == (char *)0x0) {
            return (char *)0x0;
          }
          local_28 = local_28 + 1;
          if (piVar1[2] <= local_28) {
            return pcVar3;
          }
        }
      }
    }
  }
  else {
    iVar6 = unaff_EDI + 0x804e7;
    if (iVar5 != 2) {
      iVar6 = unaff_EDI + 0x8269e;
      if (iVar5 != 3) {
        iVar6 = unaff_EDI + 0x82ab2;
      }
    }
    pcVar3 = sqlite3_mprintf((char *)(unaff_EDI + 0x8201a),iVar6);
    if (pcVar3 != (char *)0x0) {
      if (0 < extraout_ECX[7]) {
        iVar5 = 0;
        do {
          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);
          if (pcVar4 == (char *)0x0) {
            sqlite3_free(pcVar3);
            return (char *)0x0;
          }
          iVar5 = iVar5 + 1;
          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);
          if (pcVar3 == (char *)0x0) {
            return (char *)0x0;
          }
        } while (iVar5 < extraout_ECX[7]);
      }
      return pcVar3;
    }
  }
  return (char *)0x0;
}



int __regparm3 FUN_00076cc0(undefined4 param_1,int param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int *extraout_ECX;
  int iVar6;
  int unaff_EDI;
  int local_28;
  
  FUN_0001af1a();
  iVar3 = *extraout_ECX;
  if ((iVar3 == 9) || (iVar3 == 4)) {
    piVar1 = (int *)extraout_ECX[6];
    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);
    if (iVar3 != 0) {
      piVar2 = (int *)piVar1[1];
      if (piVar2 != (int *)0x0) {
        param_2 = piVar2[1];
        if (*piVar2 == 1) {
          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);
        }
        else {
          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);
          if (1 < *(int *)piVar1[1]) {
            iVar3 = 1;
            do {
              param_2 = piVar2[iVar3 + 1];
              iVar3 = iVar3 + 1;
              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);
            } while (iVar3 < *(int *)piVar1[1]);
          }
          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);
        }
        if (iVar3 == 0) {
          return 0;
        }
      }
      if (1 < piVar1[2]) {
        param_2 = *piVar1;
        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);
        if (iVar3 == 0) {
          return 0;
        }
      }
      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);
      if (iVar3 != 0) {
        if (piVar1[2] < 1) {
          return iVar3;
        }
        local_28 = 0;
        while( true ) {
          iVar6 = piVar1[local_28 + 3];
          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);
          if (iVar3 == 0) break;
          if (0 < *(int *)(iVar6 + 0x10)) {
            iVar4 = 0;
            do {
              param_2 = unaff_EDI + 0x833d9;
              if (iVar4 == 0) {
                param_2 = unaff_EDI + 0x804ae;
              }
              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);
              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);
              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {
                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);
              }
              iVar4 = iVar4 + 1;
              if (iVar3 == 0) {
                return 0;
              }
            } while (iVar4 < *(int *)(iVar6 + 0x10));
          }
          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);
          if (iVar3 == 0) {
            return 0;
          }
          local_28 = local_28 + 1;
          if (piVar1[2] <= local_28) {
            return iVar3;
          }
        }
      }
    }
  }
  else {
    iVar6 = unaff_EDI + 0x804e7;
    if (iVar3 != 2) {
      iVar6 = unaff_EDI + 0x8269e;
      if (iVar3 != 3) {
        iVar6 = unaff_EDI + 0x82ab2;
      }
    }
    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);
    if (iVar3 != 0) {
      if (0 < extraout_ECX[7]) {
        iVar6 = 0;
        do {
          iVar4 = FUN_00076cc0();
          if (iVar4 == 0) {
            FUN_000264d0(iVar3);
            return 0;
          }
          iVar6 = iVar6 + 1;
          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);
          if (iVar3 == 0) {
            return 0;
          }
        } while (iVar6 < extraout_ECX[7]);
      }
      return iVar3;
    }
  }
  return 0;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
CALL 0x0001af1a
ADD EDI,0xd420b
PUSH ESI
MOV ESI,ECX
PUSH EBX
SUB ESP,0x2c
MOV EDX,dword ptr [ECX]
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESP + 0x10],EDI
CMP EDX,0x9
JZ 0x00076d98
CMP EDX,0x4
JZ 0x00076d98
MOV EDI,dword ptr [ESP + 0x10]
LEA EAX,[EDI + 0xfffac2dc]
CMP EDX,0x2
JZ 0x00076d13
CMP EDX,0x3
LEA EAX,[EDI + 0xfffae493]
LEA EDX,[EDI + 0xfffae8a7]
CMOVNZ EAX,EDX
SUB ESP,0x8
PUSH EAX
MOV EDI,dword ptr [ESP + 0x1c]
LEA EAX,[EDI + 0xfffade0f]
MOV EBX,EDI
PUSH EAX
MOV dword ptr [ESP + 0x20],EDI
CALL 0x000728a0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00076e50
MOV EAX,dword ptr [ESI + 0x1c]
TEST EAX,EAX
JLE 0x00076d8b
MOV EAX,dword ptr [ESP + 0x10]
XOR EBX,EBX
LEA EAX,[EAX + 0xfffae4bd]
MOV dword ptr [ESP + 0xc],EAX
MOV ECX,dword ptr [ESI + EBX*0x4 + 0x20]
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,EBP
CALL 0x00076cc0
TEST EAX,EAX
JZ 0x00076e60
SUB ESP,0x4
ADD EBX,0x1
PUSH EAX
PUSH dword ptr [ESP + 0x14]
PUSH EDI
CALL 0x00076c40
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00076e50
CMP dword ptr [ESI + 0x1c],EBX
JG 0x00076d51
ADD ESP,0x2c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x18]
SUB ESP,0x4
MOV dword ptr [ESP + 0x1c],EAX
PUSH EBP
MOV EAX,dword ptr [ESP + 0x18]
LEA EAX,[EAX + 0xfffae497]
PUSH EAX
PUSH 0x0
CALL 0x00076c40
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00076e50
MOV EDI,dword ptr [ESP + 0x18]
MOV EBX,dword ptr [EDI + 0x4]
TEST EBX,EBX
JZ 0x00076e80
CMP dword ptr [EBX],0x1
MOV EDX,dword ptr [EBX + 0x4]
JZ 0x00076fba
SUB ESP,0x4
PUSH EDX
MOV ESI,dword ptr [ESP + 0x18]
LEA EDX,[ESI + 0xfffae4a4]
PUSH EDX
PUSH EAX
CALL 0x00076c40
MOV EBP,dword ptr [ESP + 0x28]
ADD ESP,0x10
MOV EDX,dword ptr [EBP + 0x4]
CMP dword ptr [EDX],0x1
JLE 0x00076e2b
MOV EDI,0x1
LEA ESI,[ESI + 0xfffac367]
LEA ESI,[ESI]
SUB ESP,0x4
PUSH dword ptr [EBX + EDI*0x4 + 0x4]
ADD EDI,0x1
PUSH ESI
PUSH EAX
CALL 0x00076c40
MOV EDX,dword ptr [EBP + 0x4]
ADD ESP,0x10
CMP dword ptr [EDX],EDI
JG 0x00076e10
SUB ESP,0x8
MOV EDI,dword ptr [ESP + 0x18]
LEA EDX,[EDI + 0xfffae16d]
PUSH EDX
PUSH EAX
CALL 0x00076c40
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00076e80
LEA ESI,[ESI]
LEA ESI,[ESI]
XOR EAX,EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
PUSH EDI
MOV EBX,dword ptr [ESP + 0x20]
CALL 0x000264d0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESP + 0x18]
CMP dword ptr [EDI + 0x8],0x1
JLE 0x00076ea7
SUB ESP,0x4
PUSH dword ptr [EDI]
MOV EDI,dword ptr [ESP + 0x18]
LEA EDX,[EDI + 0xfffae4ad]
PUSH EDX
PUSH EAX
CALL 0x00076c40
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00076e50
SUB ESP,0x8
MOV ESI,dword ptr [ESP + 0x18]
LEA EDX,[ESI + 0xfffae4b7]
PUSH EDX
PUSH EAX
CALL 0x00076c40
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00076e50
MOV EDX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [EDX + 0x8]
TEST ECX,ECX
JLE 0x00076e52
LEA EDX,[ESI + 0xfffae4ba]
MOV dword ptr [ESP + 0x14],0x0
LEA EDI,[ESI + 0xfffadd8f]
MOV dword ptr [ESP + 0x1c],EDX
LEA EDX,[ESI + 0xfffaf1ce]
MOV dword ptr [ESP + 0xc],EDX
NOP
MOV ESI,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x14]
SUB ESP,0x8
MOV EBP,dword ptr [ESI + EDX*0x4 + 0xc]
PUSH dword ptr [ESP + 0x24]
PUSH EAX
CALL 0x00076c40
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00076e50
MOV EDX,dword ptr [EBP + 0x10]
TEST EDX,EDX
JLE 0x00076f80
MOV ESI,dword ptr [ESP + 0x10]
XOR EBX,EBX
LEA ESI,[ESI + 0xfffac2a3]
MOV dword ptr [ESP + 0x8],ESI
MOV ESI,EBP
JMP 0x00076f40
ADD EBX,0x1
TEST EAX,EAX
JZ 0x00076e50
CMP dword ptr [ESI + 0x10],EBX
JLE 0x00076f80
MOV EBP,EBX
MOV ECX,dword ptr [ESP + 0xc]
SHL EBP,0x4
TEST EBX,EBX
CMOVZ ECX,dword ptr [ESP + 0x8]
PUSH dword ptr [ESI + EBP*0x1 + 0x18]
PUSH ECX
PUSH EDI
PUSH EAX
CALL 0x00076c40
ADD ESP,0x10
CMP byte ptr [ESI + EBP*0x1 + 0x14],0x0
JZ 0x00076f30
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x18]
LEA ECX,[EDX + 0xfffac44b]
PUSH ECX
PUSH EAX
CALL 0x00076c40
ADD ESP,0x10
JMP 0x00076f30
SUB ESP,0x8
MOV ESI,dword ptr [ESP + 0x18]
LEA EDX,[ESI + 0xfffae1b6]
PUSH EDX
PUSH EAX
CALL 0x00076c40
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00076e50
MOV ESI,dword ptr [ESP + 0x18]
ADD dword ptr [ESP + 0x14],0x1
MOV EDX,dword ptr [ESP + 0x14]
CMP dword ptr [ESI + 0x8],EDX
JG 0x00076ef0
JMP 0x00076e52
SUB ESP,0x4
PUSH EDX
MOV EDI,dword ptr [ESP + 0x18]
LEA EDX,[EDI + 0xfffae49b]
PUSH EDX
PUSH EAX
CALL 0x00076c40
ADD ESP,0x10
JMP 0x00076e42
(translation_unit "int __regparm3 FUN_00076cc0(undefined4 param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *extraout_ECX;\n  int iVar6;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0001af1a();\n  iVar3 = *extraout_ECX;\n  if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_00076cc0(undefined4 param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *extraout_ECX;\n  int iVar6;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0001af1a();\n  iVar3 = *extraout_ECX;\n  if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00076cc0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *extraout_ECX;\n  int iVar6;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0001af1a();\n  iVar3 = *extraout_ECX;\n  if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int *extraout_ECX;" primitive_type (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "FUN_0001af1a();" (call_expression "FUN_0001af1a()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *extraout_ECX;" (assignment_expression "iVar3 = *extraout_ECX" identifier = (pointer_expression "*extraout_ECX" * identifier)) ;) (if_statement "if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }" if (parenthesized_expression "((iVar3 == 9) || (iVar3 == 4))" ( (binary_expression "(iVar3 == 9) || (iVar3 == 4)" (parenthesized_expression "(iVar3 == 9)" ( (binary_expression "iVar3 == 9" identifier == number_literal) )) || (parenthesized_expression "(iVar3 == 4)" ( (binary_expression "iVar3 == 4" identifier == number_literal) ))) )) (compound_statement "{\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "piVar1 = (int *)extraout_ECX[6];" (assignment_expression "piVar1 = (int *)extraout_ECX[6]" identifier = (cast_expression "(int *)extraout_ECX[6]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "extraout_ECX[6]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);" (assignment_expression "iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2)" identifier = (call_expression "FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2)" identifier (argument_list "(0,&UNK_000826a2 + unaff_EDI,param_2)" ( number_literal , (binary_expression "&UNK_000826a2 + unaff_EDI" (pointer_expression "&UNK_000826a2" & identifier) + identifier) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }" { (expression_statement "piVar2 = (int *)piVar1[1];" (assignment_expression "piVar2 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" { (expression_statement "param_2 = piVar2[1];" (assignment_expression "param_2 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (if_statement "if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }" if (parenthesized_expression "(*piVar2 == 1)" ( (binary_expression "*piVar2 == 1" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }" { (expression_statement "iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2)" identifier (argument_list "(iVar3,&UNK_000826a6 + unaff_EDI,param_2)" ( identifier , (binary_expression "&UNK_000826a6 + unaff_EDI" (pointer_expression "&UNK_000826a6" & identifier) + identifier) , identifier )))) ;) }) (else_clause "else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }" else (compound_statement "{\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }" { (expression_statement "uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);" (assignment_expression "uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2)" identifier (argument_list "(iVar3,unaff_EDI + 0x826af,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x826af" identifier + number_literal) , identifier )))) ;) (if_statement "if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }" if (parenthesized_expression "(1 < *(int *)piVar1[1])" ( (binary_expression "1 < *(int *)piVar1[1]" number_literal < (pointer_expression "*(int *)piVar1[1]" * (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])))) )) (compound_statement "{\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (do_statement "do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);" do (compound_statement "{\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            }" { (expression_statement "param_2 = piVar2[iVar3 + 1];" (assignment_expression "param_2 = piVar2[iVar3 + 1]" identifier = (subscript_expression "piVar2[iVar3 + 1]" identifier [ (binary_expression "iVar3 + 1" identifier + number_literal) ])) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);" (assignment_expression "uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2)" identifier = (call_expression "FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2)" identifier (argument_list "(uVar5,unaff_EDI + 0x80572,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x80572" identifier + number_literal) , identifier )))) ;) }) while (parenthesized_expression "(iVar3 < *(int *)piVar1[1])" ( (binary_expression "iVar3 < *(int *)piVar1[1]" identifier < (pointer_expression "*(int *)piVar1[1]" * (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])))) )) ;) })) (expression_statement "iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);" (assignment_expression "iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2)" identifier = (call_expression "FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2)" identifier (argument_list "(uVar5,unaff_EDI + 0x82378,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x82378" identifier + number_literal) , identifier )))) ;) }))) (if_statement "if (iVar3 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(1 < piVar1[2])" ( (binary_expression "1 < piVar1[2]" number_literal < (subscript_expression "piVar1[2]" identifier [ number_literal ])) )) (compound_statement "{\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" { (expression_statement "param_2 = *piVar1;" (assignment_expression "param_2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2)" identifier (argument_list "(iVar3,unaff_EDI + 0x826b8,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x826b8" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2)" identifier (argument_list "(iVar3,unaff_EDI + 0x826c2,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x826c2" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }" { (if_statement "if (piVar1[2] < 1) {\n          return iVar3;\n        }" if (parenthesized_expression "(piVar1[2] < 1)" ( (binary_expression "piVar1[2] < 1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n          return iVar3;\n        }" { (return_statement "return iVar3;" return identifier ;) })) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }" { (expression_statement "iVar6 = piVar1[local_28 + 3];" (assignment_expression "iVar6 = piVar1[local_28 + 3]" identifier = (subscript_expression "piVar1[local_28 + 3]" identifier [ (binary_expression "local_28 + 3" identifier + number_literal) ])) ;) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2)" identifier (argument_list "(iVar3,unaff_EDI + 0x826c5,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x826c5" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }" if (parenthesized_expression "(0 < *(int *)(iVar6 + 0x10))" ( (binary_expression "0 < *(int *)(iVar6 + 0x10)" number_literal < (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));" do (compound_statement "{\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            }" { (expression_statement "param_2 = unaff_EDI + 0x833d9;" (assignment_expression "param_2 = unaff_EDI + 0x833d9" identifier = (binary_expression "unaff_EDI + 0x833d9" identifier + number_literal)) ;) (if_statement "if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                param_2 = unaff_EDI + 0x804ae;\n              }" { (expression_statement "param_2 = unaff_EDI + 0x804ae;" (assignment_expression "param_2 = unaff_EDI + 0x804ae" identifier = (binary_expression "unaff_EDI + 0x804ae" identifier + number_literal)) ;) })) (expression_statement "uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18 + iVar4 * 0x10)" ( (binary_expression "iVar6 + 0x18 + iVar4 * 0x10" (binary_expression "iVar6 + 0x18" identifier + number_literal) + (binary_expression "iVar4 * 0x10" identifier * number_literal)) ))))) ;) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5)" identifier (argument_list "(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5)" ( identifier , (binary_expression "unaff_EDI + 0x81f9a" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }" if (parenthesized_expression "(*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0')" ( (binary_expression "*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0'" (pointer_expression "*(char *)(iVar6 + 0x14 + iVar4 * 0x10)" * (cast_expression "(char *)(iVar6 + 0x14 + iVar4 * 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14 + iVar4 * 0x10)" ( (binary_expression "iVar6 + 0x14 + iVar4 * 0x10" (binary_expression "iVar6 + 0x14" identifier + number_literal) + (binary_expression "iVar4 * 0x10" identifier * number_literal)) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }" { (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5)" identifier (argument_list "(iVar3,unaff_EDI + 0x80656,param_2,uVar5)" ( identifier , (binary_expression "unaff_EDI + 0x80656" identifier + number_literal) , identifier , identifier )))) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0) {\n                return 0;\n              }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                return 0;\n              }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(iVar4 < *(int *)(iVar6 + 0x10))" ( (binary_expression "iVar4 < *(int *)(iVar6 + 0x10)" identifier < (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2)" identifier (argument_list "(iVar3,unaff_EDI + 0x823c1,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x823c1" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (if_statement "if (piVar1[2] <= local_28) {\n            return iVar3;\n          }" if (parenthesized_expression "(piVar1[2] <= local_28)" ( (binary_expression "piVar1[2] <= local_28" (subscript_expression "piVar1[2]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n            return iVar3;\n          }" { (return_statement "return iVar3;" return identifier ;) })) })) })) })) }) (else_clause "else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }" else (compound_statement "{\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }" { (expression_statement "iVar6 = unaff_EDI + 0x804e7;" (assignment_expression "iVar6 = unaff_EDI + 0x804e7" identifier = (binary_expression "unaff_EDI + 0x804e7" identifier + number_literal)) ;) (if_statement "if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }" if (parenthesized_expression "(iVar3 != 2)" ( (binary_expression "iVar3 != 2" identifier != number_literal) )) (compound_statement "{\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }" { (expression_statement "iVar6 = unaff_EDI + 0x8269e;" (assignment_expression "iVar6 = unaff_EDI + 0x8269e" identifier = (binary_expression "unaff_EDI + 0x8269e" identifier + number_literal)) ;) (if_statement "if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }" if (parenthesized_expression "(iVar3 != 3)" ( (binary_expression "iVar3 != 3" identifier != number_literal) )) (compound_statement "{\n        iVar6 = unaff_EDI + 0x82ab2;\n      }" { (expression_statement "iVar6 = unaff_EDI + 0x82ab2;" (assignment_expression "iVar6 = unaff_EDI + 0x82ab2" identifier = (binary_expression "unaff_EDI + 0x82ab2" identifier + number_literal)) ;) })) })) (expression_statement "iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);" (assignment_expression "iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6)" identifier = (call_expression "FUN_000728a0(unaff_EDI + 0x8201a,iVar6)" identifier (argument_list "(unaff_EDI + 0x8201a,iVar6)" ( (binary_expression "unaff_EDI + 0x8201a" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }" { (if_statement "if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }" if (parenthesized_expression "(0 < extraout_ECX[7])" ( (binary_expression "0 < extraout_ECX[7]" number_literal < (subscript_expression "extraout_ECX[7]" identifier [ number_literal ])) )) (compound_statement "{\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);" do (compound_statement "{\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        }" { (expression_statement "iVar4 = FUN_00076cc0();" (assignment_expression "iVar4 = FUN_00076cc0()" identifier = (call_expression "FUN_00076cc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_000264d0(iVar3);\n            return 0;\n          }" { (expression_statement "FUN_000264d0(iVar3);" (call_expression "FUN_000264d0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4)" identifier (argument_list "(iVar3,unaff_EDI + 0x826c8,iVar4)" ( identifier , (binary_expression "unaff_EDI + 0x826c8" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(iVar6 < extraout_ECX[7])" ( (binary_expression "iVar6 < extraout_ECX[7]" identifier < (subscript_expression "extraout_ECX[7]" identifier [ number_literal ])) )) ;) })) (return_statement "return iVar3;" return identifier ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "char * __regparm3 fts5ExprPrintTcl(Fts5Config *pConfig,char *zNearsetCmd,Fts5ExprNode *pExpr)\n\n{\n  int *piVar1;\n  int *piVar2;\n  Fts5Config *pConfig_00;\n  char *pcVar3;\n  char *pcVar4;\n  int *extraout_ECX;\n  int iVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined4 uVar7;\n  int local_28;\n  \n  pConfig_00 = (Fts5Config *)__x86_get_pc_thunk_di();\n  iVar5 = *extraout_ECX;\n  if ((iVar5 == 9) || (iVar5 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    pcVar3 = fts5PrintfAppend((char *)0x0,&UNK_000826a2 + unaff_EDI,zNearsetCmd);\n    if (pcVar3 != (char *)0x0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        zNearsetCmd = (char *)piVar2[1];\n        if (*piVar2 == 1) {\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }\n        else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        zNearsetCmd = (char *)*piVar1;\n        pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd);\n      if (pcVar3 != (char *)0x0) {\n        if (piVar1[2] < 1) {\n          return pcVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar5 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar5 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    pcVar3 = sqlite3_mprintf((char *)(unaff_EDI + 0x8201a),iVar6);\n    if (pcVar3 != (char *)0x0) {\n      if (0 < extraout_ECX[7]) {\n        iVar5 = 0;\n        do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);\n      }\n      return pcVar3;\n    }\n  }\n  return (char *)0x0;\n}\n\n" (function_definition "char * __regparm3 fts5ExprPrintTcl(Fts5Config *pConfig,char *zNearsetCmd,Fts5ExprNode *pExpr)\n\n{\n  int *piVar1;\n  int *piVar2;\n  Fts5Config *pConfig_00;\n  char *pcVar3;\n  char *pcVar4;\n  int *extraout_ECX;\n  int iVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined4 uVar7;\n  int local_28;\n  \n  pConfig_00 = (Fts5Config *)__x86_get_pc_thunk_di();\n  iVar5 = *extraout_ECX;\n  if ((iVar5 == 9) || (iVar5 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    pcVar3 = fts5PrintfAppend((char *)0x0,&UNK_000826a2 + unaff_EDI,zNearsetCmd);\n    if (pcVar3 != (char *)0x0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        zNearsetCmd = (char *)piVar2[1];\n        if (*piVar2 == 1) {\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }\n        else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        zNearsetCmd = (char *)*piVar1;\n        pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd);\n      if (pcVar3 != (char *)0x0) {\n        if (piVar1[2] < 1) {\n          return pcVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar5 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar5 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    pcVar3 = sqlite3_mprintf((char *)(unaff_EDI + 0x8201a),iVar6);\n    if (pcVar3 != (char *)0x0) {\n      if (0 < extraout_ECX[7]) {\n        iVar5 = 0;\n        do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);\n      }\n      return pcVar3;\n    }\n  }\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 fts5ExprPrintTcl(Fts5Config *pConfig,char *zNearsetCmd,Fts5ExprNode *pExpr)" * (ERROR "__regparm3" identifier) (function_declarator "fts5ExprPrintTcl(Fts5Config *pConfig,char *zNearsetCmd,Fts5ExprNode *pExpr)" identifier (parameter_list "(Fts5Config *pConfig,char *zNearsetCmd,Fts5ExprNode *pExpr)" ( (parameter_declaration "Fts5Config *pConfig" type_identifier (pointer_declarator "*pConfig" * identifier)) , (parameter_declaration "char *zNearsetCmd" primitive_type (pointer_declarator "*zNearsetCmd" * identifier)) , (parameter_declaration "Fts5ExprNode *pExpr" type_identifier (pointer_declarator "*pExpr" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  Fts5Config *pConfig_00;\n  char *pcVar3;\n  char *pcVar4;\n  int *extraout_ECX;\n  int iVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined4 uVar7;\n  int local_28;\n  \n  pConfig_00 = (Fts5Config *)__x86_get_pc_thunk_di();\n  iVar5 = *extraout_ECX;\n  if ((iVar5 == 9) || (iVar5 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    pcVar3 = fts5PrintfAppend((char *)0x0,&UNK_000826a2 + unaff_EDI,zNearsetCmd);\n    if (pcVar3 != (char *)0x0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        zNearsetCmd = (char *)piVar2[1];\n        if (*piVar2 == 1) {\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }\n        else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        zNearsetCmd = (char *)*piVar1;\n        pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd);\n      if (pcVar3 != (char *)0x0) {\n        if (piVar1[2] < 1) {\n          return pcVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar5 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar5 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    pcVar3 = sqlite3_mprintf((char *)(unaff_EDI + 0x8201a),iVar6);\n    if (pcVar3 != (char *)0x0) {\n      if (0 < extraout_ECX[7]) {\n        iVar5 = 0;\n        do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);\n      }\n      return pcVar3;\n    }\n  }\n  return (char *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "Fts5Config *pConfig_00;" type_identifier (pointer_declarator "*pConfig_00" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *extraout_ECX;" primitive_type (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "pConfig_00 = (Fts5Config *)__x86_get_pc_thunk_di();" (assignment_expression "pConfig_00 = (Fts5Config *)__x86_get_pc_thunk_di()" identifier = (cast_expression "(Fts5Config *)__x86_get_pc_thunk_di()" ( (type_descriptor "Fts5Config *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar5 = *extraout_ECX;" (assignment_expression "iVar5 = *extraout_ECX" identifier = (pointer_expression "*extraout_ECX" * identifier)) ;) (if_statement "if ((iVar5 == 9) || (iVar5 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    pcVar3 = fts5PrintfAppend((char *)0x0,&UNK_000826a2 + unaff_EDI,zNearsetCmd);\n    if (pcVar3 != (char *)0x0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        zNearsetCmd = (char *)piVar2[1];\n        if (*piVar2 == 1) {\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }\n        else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        zNearsetCmd = (char *)*piVar1;\n        pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd);\n      if (pcVar3 != (char *)0x0) {\n        if (piVar1[2] < 1) {\n          return pcVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar5 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar5 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    pcVar3 = sqlite3_mprintf((char *)(unaff_EDI + 0x8201a),iVar6);\n    if (pcVar3 != (char *)0x0) {\n      if (0 < extraout_ECX[7]) {\n        iVar5 = 0;\n        do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);\n      }\n      return pcVar3;\n    }\n  }" if (parenthesized_expression "((iVar5 == 9) || (iVar5 == 4))" ( (binary_expression "(iVar5 == 9) || (iVar5 == 4)" (parenthesized_expression "(iVar5 == 9)" ( (binary_expression "iVar5 == 9" identifier == number_literal) )) || (parenthesized_expression "(iVar5 == 4)" ( (binary_expression "iVar5 == 4" identifier == number_literal) ))) )) (compound_statement "{\n    piVar1 = (int *)extraout_ECX[6];\n    pcVar3 = fts5PrintfAppend((char *)0x0,&UNK_000826a2 + unaff_EDI,zNearsetCmd);\n    if (pcVar3 != (char *)0x0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        zNearsetCmd = (char *)piVar2[1];\n        if (*piVar2 == 1) {\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }\n        else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        zNearsetCmd = (char *)*piVar1;\n        pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd);\n      if (pcVar3 != (char *)0x0) {\n        if (piVar1[2] < 1) {\n          return pcVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "piVar1 = (int *)extraout_ECX[6];" (assignment_expression "piVar1 = (int *)extraout_ECX[6]" identifier = (cast_expression "(int *)extraout_ECX[6]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "extraout_ECX[6]" identifier [ number_literal ]))) ;) (expression_statement "pcVar3 = fts5PrintfAppend((char *)0x0,&UNK_000826a2 + unaff_EDI,zNearsetCmd);" (assignment_expression "pcVar3 = fts5PrintfAppend((char *)0x0,&UNK_000826a2 + unaff_EDI,zNearsetCmd)" identifier = (call_expression "fts5PrintfAppend((char *)0x0,&UNK_000826a2 + unaff_EDI,zNearsetCmd)" identifier (argument_list "((char *)0x0,&UNK_000826a2 + unaff_EDI,zNearsetCmd)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (binary_expression "&UNK_000826a2 + unaff_EDI" (pointer_expression "&UNK_000826a2" & identifier) + identifier) , identifier )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        zNearsetCmd = (char *)piVar2[1];\n        if (*piVar2 == 1) {\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }\n        else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        zNearsetCmd = (char *)*piVar1;\n        pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd);\n      if (pcVar3 != (char *)0x0) {\n        if (piVar1[2] < 1) {\n          return pcVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        zNearsetCmd = (char *)piVar2[1];\n        if (*piVar2 == 1) {\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }\n        else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        zNearsetCmd = (char *)*piVar1;\n        pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }\n      pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd);\n      if (pcVar3 != (char *)0x0) {\n        if (piVar1[2] < 1) {\n          return pcVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }\n      }\n    }" { (expression_statement "piVar2 = (int *)piVar1[1];" (assignment_expression "piVar2 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n        zNearsetCmd = (char *)piVar2[1];\n        if (*piVar2 == 1) {\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }\n        else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        zNearsetCmd = (char *)piVar2[1];\n        if (*piVar2 == 1) {\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }\n        else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }" { (expression_statement "zNearsetCmd = (char *)piVar2[1];" (assignment_expression "zNearsetCmd = (char *)piVar2[1]" identifier = (cast_expression "(char *)piVar2[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (if_statement "if (*piVar2 == 1) {\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }\n        else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }" if (parenthesized_expression "(*piVar2 == 1)" ( (binary_expression "*piVar2 == 1" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n          pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);\n        }" { (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd)" identifier = (call_expression "fts5PrintfAppend(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd)" identifier (argument_list "(pcVar3,&UNK_000826a6 + unaff_EDI,zNearsetCmd)" ( identifier , (binary_expression "&UNK_000826a6 + unaff_EDI" (pointer_expression "&UNK_000826a6" & identifier) + identifier) , identifier )))) ;) }) (else_clause "else {\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }" else (compound_statement "{\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);\n          if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);\n        }" { (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd)" identifier = (call_expression "fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd)" identifier (argument_list "(pcVar3,(char *)(unaff_EDI + 0x826af),zNearsetCmd)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x826af)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x826af)" ( (binary_expression "unaff_EDI + 0x826af" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (1 < *(int *)piVar1[1]) {\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }" if (parenthesized_expression "(1 < *(int *)piVar1[1])" ( (binary_expression "1 < *(int *)piVar1[1]" number_literal < (pointer_expression "*(int *)piVar1[1]" * (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])))) )) (compound_statement "{\n            iVar5 = 1;\n            do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);\n          }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (do_statement "do {\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            } while (iVar5 < *(int *)piVar1[1]);" do (compound_statement "{\n              zNearsetCmd = (char *)piVar2[iVar5 + 1];\n              iVar5 = iVar5 + 1;\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);\n            }" { (expression_statement "zNearsetCmd = (char *)piVar2[iVar5 + 1];" (assignment_expression "zNearsetCmd = (char *)piVar2[iVar5 + 1]" identifier = (cast_expression "(char *)piVar2[iVar5 + 1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[iVar5 + 1]" identifier [ (binary_expression "iVar5 + 1" identifier + number_literal) ]))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd)" identifier = (call_expression "fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd)" identifier (argument_list "(pcVar3,(char *)(unaff_EDI + 0x80572),zNearsetCmd)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x80572)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x80572)" ( (binary_expression "unaff_EDI + 0x80572" identifier + number_literal) ))) , identifier )))) ;) }) while (parenthesized_expression "(iVar5 < *(int *)piVar1[1])" ( (binary_expression "iVar5 < *(int *)piVar1[1]" identifier < (pointer_expression "*(int *)piVar1[1]" * (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])))) )) ;) })) (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd)" identifier = (call_expression "fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd)" identifier (argument_list "(pcVar3,(char *)(unaff_EDI + 0x82378),zNearsetCmd)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x82378)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x82378)" ( (binary_expression "unaff_EDI + 0x82378" identifier + number_literal) ))) , identifier )))) ;) }))) (if_statement "if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return (char *)0x0;\n        }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (if_statement "if (1 < piVar1[2]) {\n        zNearsetCmd = (char *)*piVar1;\n        pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }" if (parenthesized_expression "(1 < piVar1[2])" ( (binary_expression "1 < piVar1[2]" number_literal < (subscript_expression "piVar1[2]" identifier [ number_literal ])) )) (compound_statement "{\n        zNearsetCmd = (char *)*piVar1;\n        pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);\n        if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }\n      }" { (expression_statement "zNearsetCmd = (char *)*piVar1;" (assignment_expression "zNearsetCmd = (char *)*piVar1" identifier = (cast_expression "(char *)*piVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd)" identifier = (call_expression "fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd)" identifier (argument_list "(pcVar3,(char *)(unaff_EDI + 0x826b8),zNearsetCmd)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x826b8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x826b8)" ( (binary_expression "unaff_EDI + 0x826b8" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n          return (char *)0x0;\n        }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return (char *)0x0;\n        }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd)" identifier = (call_expression "fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd)" identifier (argument_list "(pcVar3,(char *)(unaff_EDI + 0x826c2),zNearsetCmd)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x826c2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x826c2)" ( (binary_expression "unaff_EDI + 0x826c2" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n        if (piVar1[2] < 1) {\n          return pcVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }\n      }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (piVar1[2] < 1) {\n          return pcVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }\n      }" { (if_statement "if (piVar1[2] < 1) {\n          return pcVar3;\n        }" if (parenthesized_expression "(piVar1[2] < 1)" ( (binary_expression "piVar1[2] < 1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n          return pcVar3;\n        }" { (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar5 = piVar1[local_28 + 3];\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) break;\n          if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }\n        }" { (expression_statement "iVar5 = piVar1[local_28 + 3];" (assignment_expression "iVar5 = piVar1[local_28 + 3]" identifier = (subscript_expression "piVar1[local_28 + 3]" identifier [ (binary_expression "local_28 + 3" identifier + number_literal) ])) ;) (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd)" identifier = (call_expression "fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd)" identifier (argument_list "(pcVar3,(char *)(unaff_EDI + 0x826c5),zNearsetCmd)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x826c5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x826c5)" ( (binary_expression "unaff_EDI + 0x826c5" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (pcVar3 == (char *)0x0) break;" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (if_statement "if (0 < *(int *)(iVar5 + 0x10)) {\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }" if (parenthesized_expression "(0 < *(int *)(iVar5 + 0x10))" ( (binary_expression "0 < *(int *)(iVar5 + 0x10)" number_literal < (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n            iVar6 = 0;\n            do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));\n          }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            } while (iVar6 < *(int *)(iVar5 + 0x10));" do (compound_statement "{\n              zNearsetCmd = (char *)(unaff_EDI + 0x833d9);\n              if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }\n              uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);\n              pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);\n              if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }\n              iVar6 = iVar6 + 1;\n              if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }\n            }" { (expression_statement "zNearsetCmd = (char *)(unaff_EDI + 0x833d9);" (assignment_expression "zNearsetCmd = (char *)(unaff_EDI + 0x833d9)" identifier = (cast_expression "(char *)(unaff_EDI + 0x833d9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x833d9)" ( (binary_expression "unaff_EDI + 0x833d9" identifier + number_literal) )))) ;) (if_statement "if (iVar6 == 0) {\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n                zNearsetCmd = (char *)(unaff_EDI + 0x804ae);\n              }" { (expression_statement "zNearsetCmd = (char *)(unaff_EDI + 0x804ae);" (assignment_expression "zNearsetCmd = (char *)(unaff_EDI + 0x804ae)" identifier = (cast_expression "(char *)(unaff_EDI + 0x804ae)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x804ae)" ( (binary_expression "unaff_EDI + 0x804ae" identifier + number_literal) )))) ;) })) (expression_statement "uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10);" (assignment_expression "uVar7 = *(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10)" * (cast_expression "(undefined4 *)(iVar5 + 0x18 + iVar6 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18 + iVar6 * 0x10)" ( (binary_expression "iVar5 + 0x18 + iVar6 * 0x10" (binary_expression "iVar5 + 0x18" identifier + number_literal) + (binary_expression "iVar6 * 0x10" identifier * number_literal)) ))))) ;) (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7)" identifier = (call_expression "fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7)" identifier (argument_list "(pcVar3,(char *)(unaff_EDI + 0x81f9a),zNearsetCmd,uVar7)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x81f9a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x81f9a)" ( (binary_expression "unaff_EDI + 0x81f9a" identifier + number_literal) ))) , identifier , identifier )))) ;) (if_statement "if (*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0') {\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }" if (parenthesized_expression "(*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0')" ( (binary_expression "*(char *)(iVar5 + 0x14 + iVar6 * 0x10) != '\0'" (pointer_expression "*(char *)(iVar5 + 0x14 + iVar6 * 0x10)" * (cast_expression "(char *)(iVar5 + 0x14 + iVar6 * 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14 + iVar6 * 0x10)" ( (binary_expression "iVar5 + 0x14 + iVar6 * 0x10" (binary_expression "iVar5 + 0x14" identifier + number_literal) + (binary_expression "iVar6 * 0x10" identifier * number_literal)) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);\n              }" { (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7)" identifier = (call_expression "fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7)" identifier (argument_list "(pcVar3,(char *)(unaff_EDI + 0x80656),zNearsetCmd,uVar7)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x80656)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x80656)" ( (binary_expression "unaff_EDI + 0x80656" identifier + number_literal) ))) , identifier , identifier )))) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n                return (char *)0x0;\n              }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                return (char *)0x0;\n              }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) while (parenthesized_expression "(iVar6 < *(int *)(iVar5 + 0x10))" ( (binary_expression "iVar6 < *(int *)(iVar5 + 0x10)" identifier < (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) ))))) )) ;) })) (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd)" identifier = (call_expression "fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd)" identifier (argument_list "(pcVar3,(char *)(unaff_EDI + 0x823c1),zNearsetCmd)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x823c1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x823c1)" ( (binary_expression "unaff_EDI + 0x823c1" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return (char *)0x0;\n          }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (if_statement "if (piVar1[2] <= local_28) {\n            return pcVar3;\n          }" if (parenthesized_expression "(piVar1[2] <= local_28)" ( (binary_expression "piVar1[2] <= local_28" (subscript_expression "piVar1[2]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n            return pcVar3;\n          }" { (return_statement "return pcVar3;" return identifier ;) })) })) })) })) }) (else_clause "else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar5 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar5 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    pcVar3 = sqlite3_mprintf((char *)(unaff_EDI + 0x8201a),iVar6);\n    if (pcVar3 != (char *)0x0) {\n      if (0 < extraout_ECX[7]) {\n        iVar5 = 0;\n        do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);\n      }\n      return pcVar3;\n    }\n  }" else (compound_statement "{\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar5 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar5 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    pcVar3 = sqlite3_mprintf((char *)(unaff_EDI + 0x8201a),iVar6);\n    if (pcVar3 != (char *)0x0) {\n      if (0 < extraout_ECX[7]) {\n        iVar5 = 0;\n        do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);\n      }\n      return pcVar3;\n    }\n  }" { (expression_statement "iVar6 = unaff_EDI + 0x804e7;" (assignment_expression "iVar6 = unaff_EDI + 0x804e7" identifier = (binary_expression "unaff_EDI + 0x804e7" identifier + number_literal)) ;) (if_statement "if (iVar5 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar5 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }" if (parenthesized_expression "(iVar5 != 2)" ( (binary_expression "iVar5 != 2" identifier != number_literal) )) (compound_statement "{\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar5 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }" { (expression_statement "iVar6 = unaff_EDI + 0x8269e;" (assignment_expression "iVar6 = unaff_EDI + 0x8269e" identifier = (binary_expression "unaff_EDI + 0x8269e" identifier + number_literal)) ;) (if_statement "if (iVar5 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }" if (parenthesized_expression "(iVar5 != 3)" ( (binary_expression "iVar5 != 3" identifier != number_literal) )) (compound_statement "{\n        iVar6 = unaff_EDI + 0x82ab2;\n      }" { (expression_statement "iVar6 = unaff_EDI + 0x82ab2;" (assignment_expression "iVar6 = unaff_EDI + 0x82ab2" identifier = (binary_expression "unaff_EDI + 0x82ab2" identifier + number_literal)) ;) })) })) (expression_statement "pcVar3 = sqlite3_mprintf((char *)(unaff_EDI + 0x8201a),iVar6);" (assignment_expression "pcVar3 = sqlite3_mprintf((char *)(unaff_EDI + 0x8201a),iVar6)" identifier = (call_expression "sqlite3_mprintf((char *)(unaff_EDI + 0x8201a),iVar6)" identifier (argument_list "((char *)(unaff_EDI + 0x8201a),iVar6)" ( (cast_expression "(char *)(unaff_EDI + 0x8201a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x8201a)" ( (binary_expression "unaff_EDI + 0x8201a" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n      if (0 < extraout_ECX[7]) {\n        iVar5 = 0;\n        do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);\n      }\n      return pcVar3;\n    }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (0 < extraout_ECX[7]) {\n        iVar5 = 0;\n        do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);\n      }\n      return pcVar3;\n    }" { (if_statement "if (0 < extraout_ECX[7]) {\n        iVar5 = 0;\n        do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);\n      }" if (parenthesized_expression "(0 < extraout_ECX[7])" ( (binary_expression "0 < extraout_ECX[7]" number_literal < (subscript_expression "extraout_ECX[7]" identifier [ number_literal ])) )) (compound_statement "{\n        iVar5 = 0;\n        do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        } while (iVar5 < extraout_ECX[7]);" do (compound_statement "{\n          pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);\n          if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }\n          iVar5 = iVar5 + 1;\n          pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);\n          if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }\n        }" { (expression_statement "pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8]);" (assignment_expression "pcVar4 = fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8])" identifier = (call_expression "fts5ExprPrintTcl(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8])" identifier (argument_list "(pConfig_00,zNearsetCmd,(Fts5ExprNode *)extraout_ECX[iVar5 + 8])" ( identifier , identifier , (cast_expression "(Fts5ExprNode *)extraout_ECX[iVar5 + 8]" ( (type_descriptor "Fts5ExprNode *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "extraout_ECX[iVar5 + 8]" identifier [ (binary_expression "iVar5 + 8" identifier + number_literal) ])) )))) ;) (if_statement "if (pcVar4 == (char *)0x0) {\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            sqlite3_free(pcVar3);\n            return (char *)0x0;\n          }" { (expression_statement "sqlite3_free(pcVar3);" (call_expression "sqlite3_free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4);" (assignment_expression "pcVar3 = fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4)" identifier = (call_expression "fts5PrintfAppend(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4)" identifier (argument_list "(pcVar3,(char *)(unaff_EDI + 0x826c8),pcVar4)" ( identifier , (cast_expression "(char *)(unaff_EDI + 0x826c8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x826c8)" ( (binary_expression "unaff_EDI + 0x826c8" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n            return (char *)0x0;\n          }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return (char *)0x0;\n          }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) while (parenthesized_expression "(iVar5 < extraout_ECX[7])" ( (binary_expression "iVar5 < extraout_ECX[7]" identifier < (subscript_expression "extraout_ECX[7]" identifier [ number_literal ])) )) ;) })) (return_statement "return pcVar3;" return identifier ;) })) }))) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int __regparm3 FUN_00076cc0(undefined4 param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *extraout_ECX;\n  int iVar6;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0001af1a();\n  iVar3 = *extraout_ECX;\n  if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_00076cc0(undefined4 param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *extraout_ECX;\n  int iVar6;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0001af1a();\n  iVar3 = *extraout_ECX;\n  if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00076cc0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *extraout_ECX;\n  int iVar6;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0001af1a();\n  iVar3 = *extraout_ECX;\n  if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int *extraout_ECX;" primitive_type (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (expression_statement "FUN_0001af1a();" (call_expression "FUN_0001af1a()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *extraout_ECX;" (assignment_expression "iVar3 = *extraout_ECX" identifier = (pointer_expression "*extraout_ECX" * identifier)) ;) (if_statement "if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }" if (parenthesized_expression "((iVar3 == 9) || (iVar3 == 4))" ( (binary_expression "(iVar3 == 9) || (iVar3 == 4)" (parenthesized_expression "(iVar3 == 9)" ( (binary_expression "iVar3 == 9" identifier == number_literal) )) || (parenthesized_expression "(iVar3 == 4)" ( (binary_expression "iVar3 == 4" identifier == number_literal) ))) )) (compound_statement "{\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "piVar1 = (int *)extraout_ECX[6];" (assignment_expression "piVar1 = (int *)extraout_ECX[6]" identifier = (cast_expression "(int *)extraout_ECX[6]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "extraout_ECX[6]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);" (assignment_expression "iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2)" identifier = (call_expression "FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2)" identifier (argument_list "(0,&UNK_000826a2 + unaff_EDI,param_2)" ( number_literal , (binary_expression "&UNK_000826a2 + unaff_EDI" (pointer_expression "&UNK_000826a2" & identifier) + identifier) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }" { (expression_statement "piVar2 = (int *)piVar1[1];" (assignment_expression "piVar2 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" { (expression_statement "param_2 = piVar2[1];" (assignment_expression "param_2 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (if_statement "if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }" if (parenthesized_expression "(*piVar2 == 1)" ( (binary_expression "*piVar2 == 1" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }" { (expression_statement "iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2)" identifier (argument_list "(iVar3,&UNK_000826a6 + unaff_EDI,param_2)" ( identifier , (binary_expression "&UNK_000826a6 + unaff_EDI" (pointer_expression "&UNK_000826a6" & identifier) + identifier) , identifier )))) ;) }) (else_clause "else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }" else (compound_statement "{\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }" { (expression_statement "uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);" (assignment_expression "uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2)" identifier (argument_list "(iVar3,unaff_EDI + 0x826af,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x826af" identifier + number_literal) , identifier )))) ;) (if_statement "if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }" if (parenthesized_expression "(1 < *(int *)piVar1[1])" ( (binary_expression "1 < *(int *)piVar1[1]" number_literal < (pointer_expression "*(int *)piVar1[1]" * (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])))) )) (compound_statement "{\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (do_statement "do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);" do (compound_statement "{\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            }" { (expression_statement "param_2 = piVar2[iVar3 + 1];" (assignment_expression "param_2 = piVar2[iVar3 + 1]" identifier = (subscript_expression "piVar2[iVar3 + 1]" identifier [ (binary_expression "iVar3 + 1" identifier + number_literal) ])) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);" (assignment_expression "uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2)" identifier = (call_expression "FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2)" identifier (argument_list "(uVar5,unaff_EDI + 0x80572,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x80572" identifier + number_literal) , identifier )))) ;) }) while (parenthesized_expression "(iVar3 < *(int *)piVar1[1])" ( (binary_expression "iVar3 < *(int *)piVar1[1]" identifier < (pointer_expression "*(int *)piVar1[1]" * (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])))) )) ;) })) (expression_statement "iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);" (assignment_expression "iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2)" identifier = (call_expression "FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2)" identifier (argument_list "(uVar5,unaff_EDI + 0x82378,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x82378" identifier + number_literal) , identifier )))) ;) }))) (if_statement "if (iVar3 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" if (parenthesized_expression "(1 < piVar1[2])" ( (binary_expression "1 < piVar1[2]" number_literal < (subscript_expression "piVar1[2]" identifier [ number_literal ])) )) (compound_statement "{\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" { (expression_statement "param_2 = *piVar1;" (assignment_expression "param_2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2)" identifier (argument_list "(iVar3,unaff_EDI + 0x826b8,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x826b8" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2)" identifier (argument_list "(iVar3,unaff_EDI + 0x826c2,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x826c2" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }" { (if_statement "if (piVar1[2] < 1) {\n          return iVar3;\n        }" if (parenthesized_expression "(piVar1[2] < 1)" ( (binary_expression "piVar1[2] < 1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n          return iVar3;\n        }" { (return_statement "return iVar3;" return identifier ;) })) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }" { (expression_statement "iVar6 = piVar1[local_28 + 3];" (assignment_expression "iVar6 = piVar1[local_28 + 3]" identifier = (subscript_expression "piVar1[local_28 + 3]" identifier [ (binary_expression "local_28 + 3" identifier + number_literal) ])) ;) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2)" identifier (argument_list "(iVar3,unaff_EDI + 0x826c5,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x826c5" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }" if (parenthesized_expression "(0 < *(int *)(iVar6 + 0x10))" ( (binary_expression "0 < *(int *)(iVar6 + 0x10)" number_literal < (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));" do (compound_statement "{\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            }" { (expression_statement "param_2 = unaff_EDI + 0x833d9;" (assignment_expression "param_2 = unaff_EDI + 0x833d9" identifier = (binary_expression "unaff_EDI + 0x833d9" identifier + number_literal)) ;) (if_statement "if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n                param_2 = unaff_EDI + 0x804ae;\n              }" { (expression_statement "param_2 = unaff_EDI + 0x804ae;" (assignment_expression "param_2 = unaff_EDI + 0x804ae" identifier = (binary_expression "unaff_EDI + 0x804ae" identifier + number_literal)) ;) })) (expression_statement "uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18 + iVar4 * 0x10)" ( (binary_expression "iVar6 + 0x18 + iVar4 * 0x10" (binary_expression "iVar6 + 0x18" identifier + number_literal) + (binary_expression "iVar4 * 0x10" identifier * number_literal)) ))))) ;) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5)" identifier (argument_list "(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5)" ( identifier , (binary_expression "unaff_EDI + 0x81f9a" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }" if (parenthesized_expression "(*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0')" ( (binary_expression "*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0'" (pointer_expression "*(char *)(iVar6 + 0x14 + iVar4 * 0x10)" * (cast_expression "(char *)(iVar6 + 0x14 + iVar4 * 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14 + iVar4 * 0x10)" ( (binary_expression "iVar6 + 0x14 + iVar4 * 0x10" (binary_expression "iVar6 + 0x14" identifier + number_literal) + (binary_expression "iVar4 * 0x10" identifier * number_literal)) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }" { (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5)" identifier (argument_list "(iVar3,unaff_EDI + 0x80656,param_2,uVar5)" ( identifier , (binary_expression "unaff_EDI + 0x80656" identifier + number_literal) , identifier , identifier )))) ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0) {\n                return 0;\n              }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                return 0;\n              }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(iVar4 < *(int *)(iVar6 + 0x10))" ( (binary_expression "iVar4 < *(int *)(iVar6 + 0x10)" identifier < (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2)" identifier (argument_list "(iVar3,unaff_EDI + 0x823c1,param_2)" ( identifier , (binary_expression "unaff_EDI + 0x823c1" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (if_statement "if (piVar1[2] <= local_28) {\n            return iVar3;\n          }" if (parenthesized_expression "(piVar1[2] <= local_28)" ( (binary_expression "piVar1[2] <= local_28" (subscript_expression "piVar1[2]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n            return iVar3;\n          }" { (return_statement "return iVar3;" return identifier ;) })) })) })) })) }) (else_clause "else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }" else (compound_statement "{\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }" { (expression_statement "iVar6 = unaff_EDI + 0x804e7;" (assignment_expression "iVar6 = unaff_EDI + 0x804e7" identifier = (binary_expression "unaff_EDI + 0x804e7" identifier + number_literal)) ;) (if_statement "if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }" if (parenthesized_expression "(iVar3 != 2)" ( (binary_expression "iVar3 != 2" identifier != number_literal) )) (compound_statement "{\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }" { (expression_statement "iVar6 = unaff_EDI + 0x8269e;" (assignment_expression "iVar6 = unaff_EDI + 0x8269e" identifier = (binary_expression "unaff_EDI + 0x8269e" identifier + number_literal)) ;) (if_statement "if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }" if (parenthesized_expression "(iVar3 != 3)" ( (binary_expression "iVar3 != 3" identifier != number_literal) )) (compound_statement "{\n        iVar6 = unaff_EDI + 0x82ab2;\n      }" { (expression_statement "iVar6 = unaff_EDI + 0x82ab2;" (assignment_expression "iVar6 = unaff_EDI + 0x82ab2" identifier = (binary_expression "unaff_EDI + 0x82ab2" identifier + number_literal)) ;) })) })) (expression_statement "iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);" (assignment_expression "iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6)" identifier = (call_expression "FUN_000728a0(unaff_EDI + 0x8201a,iVar6)" identifier (argument_list "(unaff_EDI + 0x8201a,iVar6)" ( (binary_expression "unaff_EDI + 0x8201a" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }" { (if_statement "if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }" if (parenthesized_expression "(0 < extraout_ECX[7])" ( (binary_expression "0 < extraout_ECX[7]" number_literal < (subscript_expression "extraout_ECX[7]" identifier [ number_literal ])) )) (compound_statement "{\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);" do (compound_statement "{\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        }" { (expression_statement "iVar4 = FUN_00076cc0();" (assignment_expression "iVar4 = FUN_00076cc0()" identifier = (call_expression "FUN_00076cc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_000264d0(iVar3);\n            return 0;\n          }" { (expression_statement "FUN_000264d0(iVar3);" (call_expression "FUN_000264d0(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4)" identifier = (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4)" identifier (argument_list "(iVar3,unaff_EDI + 0x826c8,iVar4)" ( identifier , (binary_expression "unaff_EDI + 0x826c8" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(iVar6 < extraout_ECX[7])" ( (binary_expression "iVar6 < extraout_ECX[7]" identifier < (subscript_expression "extraout_ECX[7]" identifier [ number_literal ])) )) ;) })) (return_statement "return iVar3;" return identifier ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (binary_expression (pointer_expression & IDENT) + IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression & IDENT) + IDENT) , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) })) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (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) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) ;) })) (return_statement return IDENT ;) })) }))) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_00076cc0(undefined4 param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *extraout_ECX;\n  int iVar6;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0001af1a();\n  iVar3 = *extraout_ECX;\n  if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }\n  return 0;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00076cc0(undefined4 param_1,int param_2)" (identifier "FUN_00076cc0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *extraout_ECX;\n  int iVar6;\n  int unaff_EDI;\n  int local_28;\n  \n  FUN_0001af1a();\n  iVar3 = *extraout_ECX;\n  if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int *extraout_ECX;" (primitive_type "int") (pointer_declarator "*extraout_ECX" (* "*") (identifier "extraout_ECX")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (expression_statement "FUN_0001af1a();" (call_expression "FUN_0001af1a()" (identifier "FUN_0001af1a") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = *extraout_ECX;" (assignment_expression "iVar3 = *extraout_ECX" (identifier "iVar3") (= "=") (pointer_expression "*extraout_ECX" (* "*") (identifier "extraout_ECX"))) (; ";")) (if_statement "if ((iVar3 == 9) || (iVar3 == 4)) {\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }\n  else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }" (if "if") (parenthesized_expression "((iVar3 == 9) || (iVar3 == 4))" (( "(") (binary_expression "(iVar3 == 9) || (iVar3 == 4)" (parenthesized_expression "(iVar3 == 9)" (( "(") (binary_expression "iVar3 == 9" (identifier "iVar3") (== "==") (number_literal "9")) () ")")) (|| "||") (parenthesized_expression "(iVar3 == 4)" (( "(") (binary_expression "iVar3 == 4" (identifier "iVar3") (== "==") (number_literal "4")) () ")"))) () ")")) (compound_statement "{\n    piVar1 = (int *)extraout_ECX[6];\n    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);\n    if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "piVar1 = (int *)extraout_ECX[6];" (assignment_expression "piVar1 = (int *)extraout_ECX[6]" (identifier "piVar1") (= "=") (cast_expression "(int *)extraout_ECX[6]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "extraout_ECX[6]" (identifier "extraout_ECX") ([ "[") (number_literal "6") (] "]")))) (; ";")) (expression_statement "iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);" (assignment_expression "iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2)" (identifier "FUN_00076c40") (argument_list "(0,&UNK_000826a2 + unaff_EDI,param_2)" (( "(") (number_literal "0") (, ",") (binary_expression "&UNK_000826a2 + unaff_EDI" (pointer_expression "&UNK_000826a2" (& "&") (identifier "UNK_000826a2")) (+ "+") (identifier "unaff_EDI")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = (int *)piVar1[1];\n      if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);\n      if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }\n    }" ({ "{") (expression_statement "piVar2 = (int *)piVar1[1];" (assignment_expression "piVar2 = (int *)piVar1[1]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        param_2 = piVar2[1];\n        if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" ({ "{") (expression_statement "param_2 = piVar2[1];" (assignment_expression "param_2 = piVar2[1]" (identifier "param_2") (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (*piVar2 == 1) {\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }\n        else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }" (if "if") (parenthesized_expression "(*piVar2 == 1)" (( "(") (binary_expression "*piVar2 == 1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);\n        }" ({ "{") (expression_statement "iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2)" (identifier "FUN_00076c40") (argument_list "(iVar3,&UNK_000826a6 + unaff_EDI,param_2)" (( "(") (identifier "iVar3") (, ",") (binary_expression "&UNK_000826a6 + unaff_EDI" (pointer_expression "&UNK_000826a6" (& "&") (identifier "UNK_000826a6")) (+ "+") (identifier "unaff_EDI")) (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")) (else_clause "else {\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }" (else "else") (compound_statement "{\n          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);\n          if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }\n          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);\n        }" ({ "{") (expression_statement "uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);" (assignment_expression "uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2)" (identifier "uVar5") (= "=") (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2)" (identifier "FUN_00076c40") (argument_list "(iVar3,unaff_EDI + 0x826af,param_2)" (( "(") (identifier "iVar3") (, ",") (binary_expression "unaff_EDI + 0x826af" (identifier "unaff_EDI") (+ "+") (number_literal "0x826af")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (1 < *(int *)piVar1[1]) {\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }" (if "if") (parenthesized_expression "(1 < *(int *)piVar1[1])" (( "(") (binary_expression "1 < *(int *)piVar1[1]" (number_literal "1") (< "<") (pointer_expression "*(int *)piVar1[1]" (* "*") (cast_expression "(int *)piVar1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))))) () ")")) (compound_statement "{\n            iVar3 = 1;\n            do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);\n          }" ({ "{") (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            } while (iVar3 < *(int *)piVar1[1]);" (do "do") (compound_statement "{\n              param_2 = piVar2[iVar3 + 1];\n              iVar3 = iVar3 + 1;\n              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);\n            }" ({ "{") (expression_statement "param_2 = piVar2[iVar3 + 1];" (assignment_expression "param_2 = piVar2[iVar3 + 1]" (identifier "param_2") (= "=") (subscript_expression "piVar2[iVar3 + 1]" (identifier "piVar2") ([ "[") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) (] "]"))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);" (assignment_expression "uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2)" (identifier "uVar5") (= "=") (call_expression "FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2)" (identifier "FUN_00076c40") (argument_list "(uVar5,unaff_EDI + 0x80572,param_2)" (( "(") (identifier "uVar5") (, ",") (binary_expression "unaff_EDI + 0x80572" (identifier "unaff_EDI") (+ "+") (number_literal "0x80572")) (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < *(int *)piVar1[1])" (( "(") (binary_expression "iVar3 < *(int *)piVar1[1]" (identifier "iVar3") (< "<") (pointer_expression "*(int *)piVar1[1]" (* "*") (cast_expression "(int *)piVar1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);" (assignment_expression "iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2)" (identifier "FUN_00076c40") (argument_list "(uVar5,unaff_EDI + 0x82378,param_2)" (( "(") (identifier "uVar5") (, ",") (binary_expression "unaff_EDI + 0x82378" (identifier "unaff_EDI") (+ "+") (number_literal "0x82378")) (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar3 == 0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (if_statement "if (1 < piVar1[2]) {\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" (if "if") (parenthesized_expression "(1 < piVar1[2])" (( "(") (binary_expression "1 < piVar1[2]" (number_literal "1") (< "<") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) () ")")) (compound_statement "{\n        param_2 = *piVar1;\n        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" ({ "{") (expression_statement "param_2 = *piVar1;" (assignment_expression "param_2 = *piVar1" (identifier "param_2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2)" (identifier "FUN_00076c40") (argument_list "(iVar3,unaff_EDI + 0x826b8,param_2)" (( "(") (identifier "iVar3") (, ",") (binary_expression "unaff_EDI + 0x826b8" (identifier "unaff_EDI") (+ "+") (number_literal "0x826b8")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2)" (identifier "FUN_00076c40") (argument_list "(iVar3,unaff_EDI + 0x826c2,param_2)" (( "(") (identifier "iVar3") (, ",") (binary_expression "unaff_EDI + 0x826c2" (identifier "unaff_EDI") (+ "+") (number_literal "0x826c2")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (piVar1[2] < 1) {\n          return iVar3;\n        }\n        local_28 = 0;\n        while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }\n      }" ({ "{") (if_statement "if (piVar1[2] < 1) {\n          return iVar3;\n        }" (if "if") (parenthesized_expression "(piVar1[2] < 1)" (( "(") (binary_expression "piVar1[2] < 1" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n          return iVar3;\n        }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          iVar6 = piVar1[local_28 + 3];\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);\n          if (iVar3 == 0) break;\n          if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);\n          if (iVar3 == 0) {\n            return 0;\n          }\n          local_28 = local_28 + 1;\n          if (piVar1[2] <= local_28) {\n            return iVar3;\n          }\n        }" ({ "{") (expression_statement "iVar6 = piVar1[local_28 + 3];" (assignment_expression "iVar6 = piVar1[local_28 + 3]" (identifier "iVar6") (= "=") (subscript_expression "piVar1[local_28 + 3]" (identifier "piVar1") ([ "[") (binary_expression "local_28 + 3" (identifier "local_28") (+ "+") (number_literal "3")) (] "]"))) (; ";")) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2)" (identifier "FUN_00076c40") (argument_list "(iVar3,unaff_EDI + 0x826c5,param_2)" (( "(") (identifier "iVar3") (, ",") (binary_expression "unaff_EDI + 0x826c5" (identifier "unaff_EDI") (+ "+") (number_literal "0x826c5")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (0 < *(int *)(iVar6 + 0x10)) {\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }" (if "if") (parenthesized_expression "(0 < *(int *)(iVar6 + 0x10))" (( "(") (binary_expression "0 < *(int *)(iVar6 + 0x10)" (number_literal "0") (< "<") (pointer_expression "*(int *)(iVar6 + 0x10)" (* "*") (cast_expression "(int *)(iVar6 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n            iVar4 = 0;\n            do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));\n          }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            } while (iVar4 < *(int *)(iVar6 + 0x10));" (do "do") (compound_statement "{\n              param_2 = unaff_EDI + 0x833d9;\n              if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }\n              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);\n              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);\n              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }\n              iVar4 = iVar4 + 1;\n              if (iVar3 == 0) {\n                return 0;\n              }\n            }" ({ "{") (expression_statement "param_2 = unaff_EDI + 0x833d9;" (assignment_expression "param_2 = unaff_EDI + 0x833d9" (identifier "param_2") (= "=") (binary_expression "unaff_EDI + 0x833d9" (identifier "unaff_EDI") (+ "+") (number_literal "0x833d9"))) (; ";")) (if_statement "if (iVar4 == 0) {\n                param_2 = unaff_EDI + 0x804ae;\n              }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                param_2 = unaff_EDI + 0x804ae;\n              }" ({ "{") (expression_statement "param_2 = unaff_EDI + 0x804ae;" (assignment_expression "param_2 = unaff_EDI + 0x804ae" (identifier "param_2") (= "=") (binary_expression "unaff_EDI + 0x804ae" (identifier "unaff_EDI") (+ "+") (number_literal "0x804ae"))) (; ";")) (} "}"))) (expression_statement "uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);" (assignment_expression "uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x18 + iVar4 * 0x10)" (( "(") (binary_expression "iVar6 + 0x18 + iVar4 * 0x10" (binary_expression "iVar6 + 0x18" (identifier "iVar6") (+ "+") (number_literal "0x18")) (+ "+") (binary_expression "iVar4 * 0x10" (identifier "iVar4") (* "*") (number_literal "0x10"))) () ")"))))) (; ";")) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5)" (identifier "iVar3") (= "=") (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5)" (identifier "FUN_00076c40") (argument_list "(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5)" (( "(") (identifier "iVar3") (, ",") (binary_expression "unaff_EDI + 0x81f9a" (identifier "unaff_EDI") (+ "+") (number_literal "0x81f9a")) (, ",") (identifier "param_2") (, ",") (identifier "uVar5") () ")")))) (; ";")) (if_statement "if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }" (if "if") (parenthesized_expression "(*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0')" (( "(") (binary_expression "*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0'" (pointer_expression "*(char *)(iVar6 + 0x14 + iVar4 * 0x10)" (* "*") (cast_expression "(char *)(iVar6 + 0x14 + iVar4 * 0x10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x14 + iVar4 * 0x10)" (( "(") (binary_expression "iVar6 + 0x14 + iVar4 * 0x10" (binary_expression "iVar6 + 0x14" (identifier "iVar6") (+ "+") (number_literal "0x14")) (+ "+") (binary_expression "iVar4 * 0x10" (identifier "iVar4") (* "*") (number_literal "0x10"))) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);\n              }" ({ "{") (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5)" (identifier "iVar3") (= "=") (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5)" (identifier "FUN_00076c40") (argument_list "(iVar3,unaff_EDI + 0x80656,param_2,uVar5)" (( "(") (identifier "iVar3") (, ",") (binary_expression "unaff_EDI + 0x80656" (identifier "unaff_EDI") (+ "+") (number_literal "0x80656")) (, ",") (identifier "param_2") (, ",") (identifier "uVar5") () ")")))) (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar3 == 0) {\n                return 0;\n              }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                return 0;\n              }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(iVar4 < *(int *)(iVar6 + 0x10))" (( "(") (binary_expression "iVar4 < *(int *)(iVar6 + 0x10)" (identifier "iVar4") (< "<") (pointer_expression "*(int *)(iVar6 + 0x10)" (* "*") (cast_expression "(int *)(iVar6 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2)" (identifier "FUN_00076c40") (argument_list "(iVar3,unaff_EDI + 0x823c1,param_2)" (( "(") (identifier "iVar3") (, ",") (binary_expression "unaff_EDI + 0x823c1" (identifier "unaff_EDI") (+ "+") (number_literal "0x823c1")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n            return 0;\n          }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            return 0;\n          }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" (identifier "local_28") (= "=") (binary_expression "local_28 + 1" (identifier "local_28") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (piVar1[2] <= local_28) {\n            return iVar3;\n          }" (if "if") (parenthesized_expression "(piVar1[2] <= local_28)" (( "(") (binary_expression "piVar1[2] <= local_28" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (<= "<=") (identifier "local_28")) () ")")) (compound_statement "{\n            return iVar3;\n          }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }" (else "else") (compound_statement "{\n    iVar6 = unaff_EDI + 0x804e7;\n    if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }\n    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);\n    if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }\n  }" ({ "{") (expression_statement "iVar6 = unaff_EDI + 0x804e7;" (assignment_expression "iVar6 = unaff_EDI + 0x804e7" (identifier "iVar6") (= "=") (binary_expression "unaff_EDI + 0x804e7" (identifier "unaff_EDI") (+ "+") (number_literal "0x804e7"))) (; ";")) (if_statement "if (iVar3 != 2) {\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 != 2)" (( "(") (binary_expression "iVar3 != 2" (identifier "iVar3") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      iVar6 = unaff_EDI + 0x8269e;\n      if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }\n    }" ({ "{") (expression_statement "iVar6 = unaff_EDI + 0x8269e;" (assignment_expression "iVar6 = unaff_EDI + 0x8269e" (identifier "iVar6") (= "=") (binary_expression "unaff_EDI + 0x8269e" (identifier "unaff_EDI") (+ "+") (number_literal "0x8269e"))) (; ";")) (if_statement "if (iVar3 != 3) {\n        iVar6 = unaff_EDI + 0x82ab2;\n      }" (if "if") (parenthesized_expression "(iVar3 != 3)" (( "(") (binary_expression "iVar3 != 3" (identifier "iVar3") (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n        iVar6 = unaff_EDI + 0x82ab2;\n      }" ({ "{") (expression_statement "iVar6 = unaff_EDI + 0x82ab2;" (assignment_expression "iVar6 = unaff_EDI + 0x82ab2" (identifier "iVar6") (= "=") (binary_expression "unaff_EDI + 0x82ab2" (identifier "unaff_EDI") (+ "+") (number_literal "0x82ab2"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);" (assignment_expression "iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6)" (identifier "iVar3") (= "=") (call_expression "FUN_000728a0(unaff_EDI + 0x8201a,iVar6)" (identifier "FUN_000728a0") (argument_list "(unaff_EDI + 0x8201a,iVar6)" (( "(") (binary_expression "unaff_EDI + 0x8201a" (identifier "unaff_EDI") (+ "+") (number_literal "0x8201a")) (, ",") (identifier "iVar6") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }\n      return iVar3;\n    }" ({ "{") (if_statement "if (0 < extraout_ECX[7]) {\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }" (if "if") (parenthesized_expression "(0 < extraout_ECX[7])" (( "(") (binary_expression "0 < extraout_ECX[7]" (number_literal "0") (< "<") (subscript_expression "extraout_ECX[7]" (identifier "extraout_ECX") ([ "[") (number_literal "7") (] "]"))) () ")")) (compound_statement "{\n        iVar6 = 0;\n        do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);\n      }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        } while (iVar6 < extraout_ECX[7]);" (do "do") (compound_statement "{\n          iVar4 = FUN_00076cc0();\n          if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }\n          iVar6 = iVar6 + 1;\n          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);\n          if (iVar3 == 0) {\n            return 0;\n          }\n        }" ({ "{") (expression_statement "iVar4 = FUN_00076cc0();" (assignment_expression "iVar4 = FUN_00076cc0()" (identifier "iVar4") (= "=") (call_expression "FUN_00076cc0()" (identifier "FUN_00076cc0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n            FUN_000264d0(iVar3);\n            return 0;\n          }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_000264d0(iVar3);\n            return 0;\n          }" ({ "{") (expression_statement "FUN_000264d0(iVar3);" (call_expression "FUN_000264d0(iVar3)" (identifier "FUN_000264d0") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);" (assignment_expression "iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4)" (identifier "iVar3") (= "=") (call_expression "FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4)" (identifier "FUN_00076c40") (argument_list "(iVar3,unaff_EDI + 0x826c8,iVar4)" (( "(") (identifier "iVar3") (, ",") (binary_expression "unaff_EDI + 0x826c8" (identifier "unaff_EDI") (+ "+") (number_literal "0x826c8")) (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n            return 0;\n          }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            return 0;\n          }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(iVar6 < extraout_ECX[7])" (( "(") (binary_expression "iVar6 < extraout_ECX[7]" (identifier "iVar6") (< "<") (subscript_expression "extraout_ECX[7]" (identifier "extraout_ECX") ([ "[") (number_literal "7") (] "]"))) () ")")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

char * __regparm3 function_1(type_1 *pConfig,char *zNearsetCmd,type_2 *pExpr)

{
  int *piVar1;
  int *var_6;
  type_1 *pConfig_00;
  char *var_5;
  char *var_10;
  int *extraout_ECX;
  int var_2;
  int var_8;
  int var_4;
  type_3 uVar7;
  int var_7;
  
  pConfig_00 = (type_1 *)var_1();
  var_2 = *extraout_ECX;
  if ((var_2 == 9) || (var_2 == 4)) {
    piVar1 = (int *)extraout_ECX[6];
    var_5 = var_3((char *)0x0,&UNK_000826a2 + var_4,zNearsetCmd);
    if (var_5 != (char *)0x0) {
      var_6 = (int *)piVar1[1];
      if (var_6 != (int *)0x0) {
        zNearsetCmd = (char *)var_6[1];
        if (*var_6 == 1) {
          var_5 = var_3(var_5,&UNK_000826a6 + var_4,zNearsetCmd);
        }
        else {
          var_5 = var_3(var_5,(char *)(var_4 + 0x826af),zNearsetCmd);
          if (1 < *(int *)piVar1[1]) {
            var_2 = 1;
            do {
              zNearsetCmd = (char *)var_6[var_2 + 1];
              var_2 = var_2 + 1;
              var_5 = var_3(var_5,(char *)(var_4 + 0x80572),zNearsetCmd);
            } while (var_2 < *(int *)piVar1[1]);
          }
          var_5 = var_3(var_5,(char *)(var_4 + 0x82378),zNearsetCmd);
        }
        if (var_5 == (char *)0x0) {
          return (char *)0x0;
        }
      }
      if (1 < piVar1[2]) {
        zNearsetCmd = (char *)*piVar1;
        var_5 = var_3(var_5,(char *)(var_4 + 0x826b8),zNearsetCmd);
        if (var_5 == (char *)0x0) {
          return (char *)0x0;
        }
      }
      var_5 = var_3(var_5,(char *)(var_4 + 0x826c2),zNearsetCmd);
      if (var_5 != (char *)0x0) {
        if (piVar1[2] < 1) {
          return var_5;
        }
        var_7 = 0;
        while( true ) {
          var_2 = piVar1[var_7 + 3];
          var_5 = var_3(var_5,(char *)(var_4 + 0x826c5),zNearsetCmd);
          if (var_5 == (char *)0x0) break;
          if (0 < *(int *)(var_2 + 0x10)) {
            var_8 = 0;
            do {
              zNearsetCmd = (char *)(var_4 + 0x833d9);
              if (var_8 == 0) {
                zNearsetCmd = (char *)(var_4 + 0x804ae);
              }
              uVar7 = *(type_3 *)(var_2 + 0x18 + var_8 * 0x10);
              var_5 = var_3(var_5,(char *)(var_4 + 0x81f9a),zNearsetCmd,uVar7);
              if (*(char *)(var_2 + 0x14 + var_8 * 0x10) != '\0') {
                var_5 = var_3(var_5,(char *)(var_4 + 0x80656),zNearsetCmd,uVar7);
              }
              var_8 = var_8 + 1;
              if (var_5 == (char *)0x0) {
                return (char *)0x0;
              }
            } while (var_8 < *(int *)(var_2 + 0x10));
          }
          var_5 = var_3(var_5,(char *)(var_4 + 0x823c1),zNearsetCmd);
          if (var_5 == (char *)0x0) {
            return (char *)0x0;
          }
          var_7 = var_7 + 1;
          if (piVar1[2] <= var_7) {
            return var_5;
          }
        }
      }
    }
  }
  else {
    var_8 = var_4 + 0x804e7;
    if (var_2 != 2) {
      var_8 = var_4 + 0x8269e;
      if (var_2 != 3) {
        var_8 = var_4 + 0x82ab2;
      }
    }
    var_5 = var_9((char *)(var_4 + 0x8201a),var_8);
    if (var_5 != (char *)0x0) {
      if (0 < extraout_ECX[7]) {
        var_2 = 0;
        do {
          var_10 = function_1(pConfig_00,zNearsetCmd,(type_2 *)extraout_ECX[var_2 + 8]);
          if (var_10 == (char *)0x0) {
            var_11(var_5);
            return (char *)0x0;
          }
          var_2 = var_2 + 1;
          var_5 = var_3(var_5,(char *)(var_4 + 0x826c8),var_10);
          if (var_5 == (char *)0x0) {
            return (char *)0x0;
          }
        } while (var_2 < extraout_ECX[7]);
      }
      return var_5;
    }
  }
  return (char *)0x0;
}


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

int __regparm3 MASKED(undefined4 param_1,int param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int *extraout_ECX;
  int iVar6;
  int unaff_EDI;
  int local_28;
  
  FUN_0001af1a();
  iVar3 = *extraout_ECX;
  if ((iVar3 == 9) || (iVar3 == 4)) {
    piVar1 = (int *)extraout_ECX[6];
    iVar3 = FUN_00076c40(0,&UNK_000826a2 + unaff_EDI,param_2);
    if (iVar3 != 0) {
      piVar2 = (int *)piVar1[1];
      if (piVar2 != (int *)0x0) {
        param_2 = piVar2[1];
        if (*piVar2 == 1) {
          iVar3 = FUN_00076c40(iVar3,&UNK_000826a6 + unaff_EDI,param_2);
        }
        else {
          uVar5 = FUN_00076c40(iVar3,unaff_EDI + 0x826af,param_2);
          if (1 < *(int *)piVar1[1]) {
            iVar3 = 1;
            do {
              param_2 = piVar2[iVar3 + 1];
              iVar3 = iVar3 + 1;
              uVar5 = FUN_00076c40(uVar5,unaff_EDI + 0x80572,param_2);
            } while (iVar3 < *(int *)piVar1[1]);
          }
          iVar3 = FUN_00076c40(uVar5,unaff_EDI + 0x82378,param_2);
        }
        if (iVar3 == 0) {
          return 0;
        }
      }
      if (1 < piVar1[2]) {
        param_2 = *piVar1;
        iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826b8,param_2);
        if (iVar3 == 0) {
          return 0;
        }
      }
      iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c2,param_2);
      if (iVar3 != 0) {
        if (piVar1[2] < 1) {
          return iVar3;
        }
        local_28 = 0;
        while( true ) {
          iVar6 = piVar1[local_28 + 3];
          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c5,param_2);
          if (iVar3 == 0) break;
          if (0 < *(int *)(iVar6 + 0x10)) {
            iVar4 = 0;
            do {
              param_2 = unaff_EDI + 0x833d9;
              if (iVar4 == 0) {
                param_2 = unaff_EDI + 0x804ae;
              }
              uVar5 = *(undefined4 *)(iVar6 + 0x18 + iVar4 * 0x10);
              iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x81f9a,param_2,uVar5);
              if (*(char *)(iVar6 + 0x14 + iVar4 * 0x10) != '\0') {
                iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x80656,param_2,uVar5);
              }
              iVar4 = iVar4 + 1;
              if (iVar3 == 0) {
                return 0;
              }
            } while (iVar4 < *(int *)(iVar6 + 0x10));
          }
          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x823c1,param_2);
          if (iVar3 == 0) {
            return 0;
          }
          local_28 = local_28 + 1;
          if (piVar1[2] <= local_28) {
            return iVar3;
          }
        }
      }
    }
  }
  else {
    iVar6 = unaff_EDI + 0x804e7;
    if (iVar3 != 2) {
      iVar6 = unaff_EDI + 0x8269e;
      if (iVar3 != 3) {
        iVar6 = unaff_EDI + 0x82ab2;
      }
    }
    iVar3 = FUN_000728a0(unaff_EDI + 0x8201a,iVar6);
    if (iVar3 != 0) {
      if (0 < extraout_ECX[7]) {
        iVar6 = 0;
        do {
          iVar4 = MASKED();
          if (iVar4 == 0) {
            FUN_000264d0(iVar3);
            return 0;
          }
          iVar6 = iVar6 + 1;
          iVar3 = FUN_00076c40(iVar3,unaff_EDI + 0x826c8,iVar4);
          if (iVar3 == 0) {
            return 0;
          }
        } while (iVar6 < extraout_ECX[7]);
      }
      return iVar3;
    }
  }
  return 0;
}

