
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 windowReturnOneRow(Parse *pParse,Window *pMWin,int regGosub,int addrGosub)

{
  FuncDef *pFVar1;
  char *pcVar2;
  int iVar3;
  int p1;
  int p1_00;
  byte bVar4;
  Vdbe *p;
  int p2;
  int p2_00;
  Window *pWVar5;
  int local_48;
  
  p = pParse->pVdbe;
  if (p == (Vdbe *)0x0) {
    p = sqlite3GetVdbe(pParse);
  }
  pWVar5 = pMWin;
  if (pMWin != (Window *)0x0) {
    do {
      while( true ) {
        pFVar1 = pWVar5->pFunc;
        pcVar2 = pFVar1->zName;
        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;
        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {
          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;
          p1 = pMWin->iEphCsr;
          p1_00 = pWVar5->csrApp;
          p2 = pParse->nLabel + -1;
          pParse->nLabel = p2;
          if (pParse->nTempReg == '\0') {
            p2_00 = pParse->nMem + 1;
            pParse->nMem = p2_00;
          }
          else {
            bVar4 = pParse->nTempReg - 1;
            pParse->nTempReg = bVar4;
            p2_00 = pParse->aTempReg[bVar4];
          }
          if (iVar3 < 3) {
            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);
            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);
            if (iVar3 == 2) goto LAB_00048e7b;
            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);
          }
          else {
            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);
            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);
LAB_00048e7b:
            pcVar2 = pFVar1->zName;
            if (pParse->nTempReg == '\0') {
              local_48 = pParse->nMem + 1;
              pParse->nMem = local_48;
            }
            else {
              bVar4 = pParse->nTempReg - 1;
              pParse->nTempReg = bVar4;
              local_48 = pParse->aTempReg[bVar4];
            }
            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);
            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);
            if (local_48 != 0) {
              sqlite3ReleaseTempReg(pParse,local_48);
            }
          }
          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);
          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);
          goto LAB_00048cb0;
        }
LAB_00048bc2:
        pWVar5 = pWVar5->pNextWin;
        if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;
      }
      iVar3 = pWVar5->csrApp;
      p2 = pParse->nLabel + -1;
      pParse->nLabel = p2;
      if (pParse->nTempReg == '\0') {
        p2_00 = pParse->nMem + 1;
        pParse->nMem = p2_00;
      }
      else {
        bVar4 = pParse->nTempReg - 1;
        pParse->nTempReg = bVar4;
        p2_00 = pParse->aTempReg[bVar4];
      }
      sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);
      if (pFVar1->zName == "nth_value") {
        sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);
        windowCheckIntValue(pParse,p2_00,2);
      }
      else {
        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);
      }
      sqlite3VdbeAddOp3(p,0x60,p2_00,pWVar5->regApp,p2_00);
      sqlite3VdbeAddOp3(p,0x36,pWVar5->regApp + 1,p2,p2_00);
      sqlite3VdbeAddOp3(p,0x1e,iVar3,0,p2_00);
      sqlite3VdbeAddOp3(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult);
LAB_00048cb0:
      sqlite3VdbeResolveLabel(p,p2);
      if (p2_00 == 0) goto LAB_00048bc2;
      sqlite3ReleaseTempReg(pParse,p2_00);
      pWVar5 = pWVar5->pNextWin;
    } while (pWVar5 != (Window *)0x0);
  }
LAB_00048cd6:
  sqlite3VdbeAddOp3(p,0xc,regGosub,addrGosub,0);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm2 FUN_00048b40(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  char *pcVar2;
  byte bVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int local_48;
  
  if (*(int *)(param_1 + 8) == 0) {
    FUN_000480a0();
  }
  if (param_2 != 0) {
    do {
      while( true ) {
        iVar1 = *(int *)(param_2 + 0x20);
        pcVar2 = *(char **)(iVar1 + 0x20);
        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;
        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {
          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);
          iVar5 = *(int *)(param_1 + 0x38) + -1;
          *(int *)(param_1 + 0x38) = iVar5;
          if (*(char *)(param_1 + 0x13) == '\0') {
            iVar6 = *(int *)(param_1 + 0x2c) + 1;
            *(int *)(param_1 + 0x2c) = iVar6;
          }
          else {
            bVar3 = *(char *)(param_1 + 0x13) - 1;
            *(byte *)(param_1 + 0x13) = bVar3;
            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);
          }
          if (iVar4 < 3) {
            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);
            FUN_00047f90(iVar6,0);
            if (iVar4 == 2) goto LAB_00048e7b;
            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);
          }
          else {
            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));
            FUN_00047f90(iVar6,0);
LAB_00048e7b:
            if (*(char *)(param_1 + 0x13) == '\0') {
              local_48 = *(int *)(param_1 + 0x2c) + 1;
              *(int *)(param_1 + 0x2c) = local_48;
            }
            else {
              bVar3 = *(char *)(param_1 + 0x13) - 1;
              *(byte *)(param_1 + 0x13) = bVar3;
              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);
            }
            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);
            FUN_00047f90(iVar6,iVar6);
            if (local_48 != 0) {
              FUN_0002de30();
            }
          }
          FUN_00047f90(iVar5,iVar6);
          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));
          goto LAB_00048cb0;
        }
LAB_00048bc2:
        param_2 = *(int *)(param_2 + 0x18);
        if (param_2 == 0) goto LAB_00048cd6;
      }
      iVar4 = *(int *)(param_1 + 0x38) + -1;
      *(int *)(param_1 + 0x38) = iVar4;
      if (*(char *)(param_1 + 0x13) == '\0') {
        iVar6 = *(int *)(param_1 + 0x2c) + 1;
        *(int *)(param_1 + 0x2c) = iVar6;
      }
      else {
        bVar3 = *(char *)(param_1 + 0x13) - 1;
        *(byte *)(param_1 + 0x13) = bVar3;
        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);
      }
      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);
      if (*(char **)(iVar1 + 0x20) == "nth_value") {
        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);
        FUN_00048880();
      }
      else {
        FUN_00047f90(iVar6,0);
      }
      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);
      FUN_00047f90(iVar4,iVar6);
      FUN_00047f90(0,iVar6);
      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));
LAB_00048cb0:
      FUN_00047d60();
      if (iVar6 == 0) goto LAB_00048bc2;
      FUN_0002de30();
      param_2 = *(int *)(param_2 + 0x18);
    } while (param_2 != 0);
  }
LAB_00048cd6:
  FUN_00047f90(param_3,0);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x10038b
SUB ESP,0x3c
MOV EBP,dword ptr [EAX + 0x8]
MOV dword ptr [ESP + 0x20],EDX
MOV dword ptr [ESP + 0x2c],ECX
MOV dword ptr [ESP + 0x28],EBX
MOV EBX,EAX
TEST EBP,EBP
JNZ 0x00048b6e
CALL 0x000480a0
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x28]
MOV ESI,dword ptr [ESP + 0x20]
LEA EDX,[EAX + 0xfffb9618]
LEA ECX,[EAX + 0xfffb960c]
MOV EDI,ESI
LEA EAX,[EAX + 0xfffb9604]
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0x14],ECX
MOV dword ptr [ESP + 0x18],EAX
TEST ESI,ESI
JNZ 0x00048bcd
JMP 0x00048cd6
CMP EAX,dword ptr [ESP + 0x14]
JZ 0x00048bdd
CMP EAX,dword ptr [ESP + 0x18]
JZ 0x00048d00
MOV ESI,dword ptr [ESP + 0x28]
LEA EDX,[ESI + 0xfffb9600]
CMP EAX,EDX
JZ 0x00048d00
MOV EDI,dword ptr [EDI + 0x18]
TEST EDI,EDI
JZ 0x00048cd6
MOV EAX,dword ptr [EDI + 0x20]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [EAX + 0x20]
CMP EAX,dword ptr [ESP + 0x8]
JNZ 0x00048ba0
MOV EAX,dword ptr [EDI + 0x30]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EBX + 0x38]
SUB EAX,0x1
MOV dword ptr [ESP + 0x10],EAX
MOV dword ptr [EBX + 0x38],EAX
MOVZX EAX,byte ptr [EBX + 0x13]
TEST AL,AL
JZ 0x00048df8
SUB EAX,0x1
MOV byte ptr [EBX + 0x13],AL
MOVZX EAX,AL
MOV ESI,dword ptr [EBX + EAX*0x4 + 0x90]
SUB ESP,0x8
MOV EDX,0x49
XOR ECX,ECX
MOV EAX,EBP
PUSH 0x0
PUSH dword ptr [EDI + 0x2c]
CALL 0x00047f90
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x8]
CMP dword ptr [EAX + 0x20],EDX
JZ 0x00048e10
SUB ESP,0x8
MOV ECX,0x1
MOV EDX,0x46
MOV EAX,EBP
PUSH 0x0
PUSH ESI
CALL 0x00047f90
ADD ESP,0x10
SUB ESP,0x8
MOV ECX,ESI
MOV EDX,0x60
MOV EAX,EBP
PUSH ESI
PUSH dword ptr [EDI + 0x34]
CALL 0x00047f90
MOV EAX,dword ptr [EDI + 0x34]
LEA ECX,[EAX + 0x1]
POP EAX
POP EDX
PUSH ESI
PUSH dword ptr [ESP + 0x1c]
MOV EDX,0x36
MOV EAX,EBP
CALL 0x00047f90
POP ECX
POP EAX
PUSH ESI
PUSH 0x0
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,0x1e
MOV EAX,EBP
CALL 0x00047f90
POP EAX
POP EDX
PUSH dword ptr [EDI + 0x2c]
PUSH dword ptr [EDI + 0x44]
MOV EDX,0x5a
MOV EAX,EBP
MOV ECX,dword ptr [ESP + 0x1c]
CALL 0x00047f90
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,EBP
CALL 0x00047d60
ADD ESP,0x10
TEST ESI,ESI
JZ 0x00048bc2
MOV EDX,ESI
MOV EAX,EBX
CALL 0x0002de30
MOV EDI,dword ptr [EDI + 0x18]
TEST EDI,EDI
JNZ 0x00048bcd
SUB ESP,0x8
MOV EAX,EBP
MOV EDX,0xc
PUSH 0x0
PUSH dword ptr [ESP + 0x5c]
MOV ECX,dword ptr [ESP + 0x3c]
CALL 0x00047f90
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EDI + 0x3c]
MOV EAX,dword ptr [EAX + 0x14]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX + 0x24]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EDI + 0x30]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [EBX + 0x38]
SUB EAX,0x1
MOV dword ptr [ESP + 0x1c],EAX
MOV dword ptr [EBX + 0x38],EAX
MOVZX EAX,byte ptr [EBX + 0x13]
TEST AL,AL
JZ 0x00048f00
SUB EAX,0x1
MOV byte ptr [EBX + 0x13],AL
MOVZX EAX,AL
MOV ESI,dword ptr [EBX + EAX*0x4 + 0x90]
CMP dword ptr [ESP + 0x24],0x2
MOV EAX,dword ptr [EDI + 0x2c]
JG 0x00048e48
SUB ESP,0x8
XOR ECX,ECX
MOV EDX,0x49
PUSH 0x0
PUSH EAX
MOV EAX,EBP
CALL 0x00047f90
POP ECX
POP EAX
PUSH 0x0
PUSH ESI
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,0x80
MOV EAX,EBP
CALL 0x00047f90
ADD ESP,0x10
CMP dword ptr [ESP + 0x24],0x2
JZ 0x00048e7b
MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x18]
MOV ECX,ESI
CMP dword ptr [EAX + 0x20],EDX
MOV EDX,0x53
SETZ AL
SUB ESP,0x8
MOVZX EAX,AL
PUSH 0x0
LEA EAX,[EAX + EAX*0x1 + -0x1]
PUSH EAX
MOV EAX,EBP
CALL 0x00047f90
ADD ESP,0x10
SUB ESP,0x8
MOV EDX,0x1e
MOV EAX,EBP
PUSH ESI
PUSH dword ptr [ESP + 0x28]
MOV ECX,dword ptr [ESP + 0x20]
CALL 0x00047f90
POP EAX
POP EDX
PUSH dword ptr [EDI + 0x2c]
PUSH dword ptr [EDI + 0x44]
MOV EDX,0x5a
MOV EAX,EBP
MOV ECX,dword ptr [ESP + 0x20]
CALL 0x00047f90
MOV EDX,dword ptr [ESP + 0x2c]
JMP 0x00048cb0
MOV EAX,dword ptr [EBX + 0x2c]
LEA ESI,[EAX + 0x1]
MOV dword ptr [EBX + 0x2c],ESI
JMP 0x00048c0d
MOV EAX,dword ptr [ESP + 0x20]
SUB ESP,0x8
MOV EDX,0x5a
MOV ECX,dword ptr [EAX + 0x24]
PUSH ESI
MOV EAX,dword ptr [EDI + 0x44]
ADD EAX,0x1
PUSH EAX
MOV EAX,EBP
CALL 0x00047f90
MOV ECX,0x2
MOV EDX,ESI
MOV EAX,EBX
CALL 0x00048880
ADD ESP,0x10
JMP 0x00048c51
SUB ESP,0x8
MOV EDX,0x5a
PUSH EAX
MOV EAX,dword ptr [EDI + 0x44]
ADD EAX,0x2
PUSH EAX
MOV ECX,dword ptr [ESP + 0x1c]
MOV EAX,EBP
CALL 0x00047f90
POP EAX
POP EDX
PUSH 0x0
PUSH ESI
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,0x80
MOV EAX,EBP
CALL 0x00047f90
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x18]
CMP dword ptr [EAX + 0x20],EDX
SETNZ AL
MOVZX EAX,AL
ADD EAX,0x60
MOV dword ptr [ESP + 0x24],EAX
MOVZX EAX,byte ptr [EBX + 0x13]
TEST AL,AL
JZ 0x00048f10
SUB EAX,0x1
MOV byte ptr [EBX + 0x13],AL
MOVZX EAX,AL
MOV EAX,dword ptr [EBX + EAX*0x4 + 0x90]
MOV dword ptr [ESP + 0x4],EAX
SUB ESP,0x8
MOV EDX,0x5a
PUSH dword ptr [ESP + 0xc]
MOV ECX,dword ptr [EDI + 0x44]
LEA EAX,[ECX + 0x1]
PUSH EAX
MOV ECX,dword ptr [ESP + 0x1c]
MOV EAX,EBP
CALL 0x00047f90
POP ECX
POP EAX
PUSH ESI
PUSH ESI
MOV ECX,dword ptr [ESP + 0x14]
MOV EAX,EBP
MOV EDX,dword ptr [ESP + 0x34]
CALL 0x00047f90
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JZ 0x00048db8
MOV EDX,EAX
MOV EAX,EBX
CALL 0x0002de30
JMP 0x00048db8
MOV EAX,dword ptr [EBX + 0x2c]
LEA ESI,[EAX + 0x1]
MOV dword ptr [EBX + 0x2c],ESI
JMP 0x00048d47
MOV EAX,dword ptr [EBX + 0x2c]
ADD EAX,0x1
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [EBX + 0x2c],EAX
JMP 0x00048eaf
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm2 FUN_00048b40(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  byte bVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int local_48;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }\n  if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }\nLAB_00048cd6:\n  FUN_00047f90(param_3,0);\n  return;\n}\n\n" comment (function_definition "void __regparm2 FUN_00048b40(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  byte bVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int local_48;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }\n  if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }\nLAB_00048cd6:\n  FUN_00047f90(param_3,0);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00048b40(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  byte bVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int local_48;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }\n  if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }\nLAB_00048cd6:\n  FUN_00047f90(param_3,0);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    FUN_000480a0();\n  }" { (expression_statement "FUN_000480a0();" (call_expression "FUN_000480a0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }" { (do_statement "do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);" do (compound_statement "{\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    }" { (while_statement "while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }" { (expression_statement "iVar1 = *(int *)(param_2 + 0x20);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x20)" identifier = (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = *(char **)(iVar1 + 0x20);" (assignment_expression "pcVar2 = *(char **)(iVar1 + 0x20)" identifier = (pointer_expression "*(char **)(iVar1 + 0x20)" * (cast_expression "(char **)(iVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;" if (parenthesized_expression "((pcVar2 == "nth_value") || (pcVar2 == "first_value"))" ( (binary_expression "(pcVar2 == "nth_value") || (pcVar2 == "first_value")" (parenthesized_expression "(pcVar2 == "nth_value")" ( (binary_expression "pcVar2 == "nth_value"" identifier == (string_literal ""nth_value"" " string_content ")) )) || (parenthesized_expression "(pcVar2 == "first_value")" ( (binary_expression "pcVar2 == "first_value"" identifier == (string_literal ""first_value"" " string_content ")) ))) )) (break_statement "break;" break ;)) (if_statement "if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }" if (parenthesized_expression "((pcVar2 == "lead") || (pcVar2 == "lag"))" ( (binary_expression "(pcVar2 == "lead") || (pcVar2 == "lag")" (parenthesized_expression "(pcVar2 == "lead")" ( (binary_expression "pcVar2 == "lead"" identifier == (string_literal ""lead"" " string_content ")) )) || (parenthesized_expression "(pcVar2 == "lag")" ( (binary_expression "pcVar2 == "lag"" identifier == (string_literal ""lag"" " string_content ")) ))) )) (compound_statement "{\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }" { (expression_statement "iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);" (assignment_expression "iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14)" identifier = (pointer_expression "**(int **)(*(int *)(param_2 + 0x3c) + 0x14)" * (pointer_expression "*(int **)(*(int *)(param_2 + 0x3c) + 0x14)" * (cast_expression "(int **)(*(int *)(param_2 + 0x3c) + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_2 + 0x3c) + 0x14)" ( (binary_expression "*(int *)(param_2 + 0x3c) + 0x14" (pointer_expression "*(int *)(param_2 + 0x3c)" * (cast_expression "(int *)(param_2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) + number_literal) )))))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x38) + -1;" (assignment_expression "iVar5 = *(int *)(param_1 + 0x38) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x38) + -1" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x38) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x38) = iVar5" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }" if (parenthesized_expression "(*(char *)(param_1 + 0x13) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x13) == '\0'" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }" { (expression_statement "iVar6 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar6" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }" else (compound_statement "{\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }" { (expression_statement "bVar3 = *(char *)(param_1 + 0x13) - 1;" (assignment_expression "bVar3 = *(char *)(param_1 + 0x13) - 1" identifier = (binary_expression "*(char *)(param_1 + 0x13) - 1" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) - number_literal)) ;) (expression_statement "*(byte *)(param_1 + 0x13) = bVar3;" (assignment_expression "*(byte *)(param_1 + 0x13) = bVar3" (pointer_expression "*(byte *)(param_1 + 0x13)" * (cast_expression "(byte *)(param_1 + 0x13)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" identifier = (pointer_expression "*(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" * (cast_expression "(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90 + (uint)bVar3 * 4)" ( (binary_expression "param_1 + 0x90 + (uint)bVar3 * 4" (binary_expression "param_1 + 0x90" identifier + number_literal) + (binary_expression "(uint)bVar3 * 4" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) }))) (if_statement "if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }" if (parenthesized_expression "(iVar4 < 3)" ( (binary_expression "iVar4 < 3" identifier < number_literal) )) (compound_statement "{\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }" { (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x2c),0)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "FUN_00047f90(iVar6,0);" (call_expression "FUN_00047f90(iVar6,0)" identifier (argument_list "(iVar6,0)" ( identifier , number_literal ))) ;) (if_statement "if (iVar4 == 2) goto LAB_00048e7b;" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (goto_statement "goto LAB_00048e7b;" goto statement_identifier ;)) (expression_statement "FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);" (call_expression "FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0)" identifier (argument_list "((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0)" ( (binary_expression "(uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1" (binary_expression "(uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2" (call_expression "(uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8)" ( (binary_expression "*(undefined **)(iVar1 + 0x20) == &DAT_001024d8" (pointer_expression "*(undefined **)(iVar1 + 0x20)" * (cast_expression "(undefined **)(iVar1 + 0x20)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) == (pointer_expression "&DAT_001024d8" & identifier)) ))) * number_literal) + number_literal) , number_literal ))) ;) }) (else_clause "else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }" else (compound_statement "{\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }" { (expression_statement "FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c))" identifier (argument_list "(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c))" ( (binary_expression "*(int *)(param_2 + 0x44) + 2" (pointer_expression "*(int *)(param_2 + 0x44)" * (cast_expression "(int *)(param_2 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00047f90(iVar6,0);" (call_expression "FUN_00047f90(iVar6,0)" identifier (argument_list "(iVar6,0)" ( identifier , number_literal ))) ;) (labeled_statement "LAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" statement_identifier : (if_statement "if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" if (parenthesized_expression "(*(char *)(param_1 + 0x13) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x13) == '\0'" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }" { (expression_statement "local_48 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "local_48 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = local_48;" (assignment_expression "*(int *)(param_1 + 0x2c) = local_48" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" else (compound_statement "{\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" { (expression_statement "bVar3 = *(char *)(param_1 + 0x13) - 1;" (assignment_expression "bVar3 = *(char *)(param_1 + 0x13) - 1" identifier = (binary_expression "*(char *)(param_1 + 0x13) - 1" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) - number_literal)) ;) (expression_statement "*(byte *)(param_1 + 0x13) = bVar3;" (assignment_expression "*(byte *)(param_1 + 0x13) = bVar3" (pointer_expression "*(byte *)(param_1 + 0x13)" * (cast_expression "(byte *)(param_1 + 0x13)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) = identifier) ;) (expression_statement "local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);" (assignment_expression "local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" identifier = (pointer_expression "*(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" * (cast_expression "(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90 + (uint)bVar3 * 4)" ( (binary_expression "param_1 + 0x90 + (uint)bVar3 * 4" (binary_expression "param_1 + 0x90" identifier + number_literal) + (binary_expression "(uint)bVar3 * 4" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) })))) (expression_statement "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);" (call_expression "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48)" identifier (argument_list "(*(int *)(param_2 + 0x44) + 1,local_48)" ( (binary_expression "*(int *)(param_2 + 0x44) + 1" (pointer_expression "*(int *)(param_2 + 0x44)" * (cast_expression "(int *)(param_2 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) + number_literal) , identifier ))) ;) (expression_statement "FUN_00047f90(iVar6,iVar6);" (call_expression "FUN_00047f90(iVar6,iVar6)" identifier (argument_list "(iVar6,iVar6)" ( identifier , identifier ))) ;) (if_statement "if (local_48 != 0) {\n              FUN_0002de30();\n            }" if (parenthesized_expression "(local_48 != 0)" ( (binary_expression "local_48 != 0" identifier != number_literal) )) (compound_statement "{\n              FUN_0002de30();\n            }" { (expression_statement "FUN_0002de30();" (call_expression "FUN_0002de30()" identifier (argument_list "()" ( ))) ;) })) }))) (expression_statement "FUN_00047f90(iVar5,iVar6);" (call_expression "FUN_00047f90(iVar5,iVar6)" identifier (argument_list "(iVar5,iVar6)" ( identifier , identifier ))) ;) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" identifier (argument_list "(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" ( (pointer_expression "*(undefined4 *)(param_2 + 0x44)" * (cast_expression "(undefined4 *)(param_2 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) ))) ;) (goto_statement "goto LAB_00048cb0;" goto statement_identifier ;) })) (labeled_statement "LAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);" statement_identifier : (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;)) (if_statement "if (param_2 == 0) goto LAB_00048cd6;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00048cd6;" goto statement_identifier ;)) })) (expression_statement "iVar4 = *(int *)(param_1 + 0x38) + -1;" (assignment_expression "iVar4 = *(int *)(param_1 + 0x38) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x38) + -1" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x38) = iVar4;" (assignment_expression "*(int *)(param_1 + 0x38) = iVar4" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x13) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x13) == '\0'" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }" { (expression_statement "iVar6 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar6" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }" else (compound_statement "{\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }" { (expression_statement "bVar3 = *(char *)(param_1 + 0x13) - 1;" (assignment_expression "bVar3 = *(char *)(param_1 + 0x13) - 1" identifier = (binary_expression "*(char *)(param_1 + 0x13) - 1" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) - number_literal)) ;) (expression_statement "*(byte *)(param_1 + 0x13) = bVar3;" (assignment_expression "*(byte *)(param_1 + 0x13) = bVar3" (pointer_expression "*(byte *)(param_1 + 0x13)" * (cast_expression "(byte *)(param_1 + 0x13)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" identifier = (pointer_expression "*(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" * (cast_expression "(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90 + (uint)bVar3 * 4)" ( (binary_expression "param_1 + 0x90 + (uint)bVar3 * 4" (binary_expression "param_1 + 0x90" identifier + number_literal) + (binary_expression "(uint)bVar3 * 4" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) }))) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x2c),0)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) , number_literal ))) ;) (if_statement "if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }" if (parenthesized_expression "(*(char **)(iVar1 + 0x20) == "nth_value")" ( (binary_expression "*(char **)(iVar1 + 0x20) == "nth_value"" (pointer_expression "*(char **)(iVar1 + 0x20)" * (cast_expression "(char **)(iVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) == (string_literal ""nth_value"" " string_content ")) )) (compound_statement "{\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }" { (expression_statement "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);" (call_expression "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6)" identifier (argument_list "(*(int *)(param_2 + 0x44) + 1,iVar6)" ( (binary_expression "*(int *)(param_2 + 0x44) + 1" (pointer_expression "*(int *)(param_2 + 0x44)" * (cast_expression "(int *)(param_2 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) + number_literal) , identifier ))) ;) (expression_statement "FUN_00048880();" (call_expression "FUN_00048880()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n        FUN_00047f90(iVar6,0);\n      }" else (compound_statement "{\n        FUN_00047f90(iVar6,0);\n      }" { (expression_statement "FUN_00047f90(iVar6,0);" (call_expression "FUN_00047f90(iVar6,0)" identifier (argument_list "(iVar6,0)" ( identifier , number_literal ))) ;) }))) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x34),iVar6)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x34)" * (cast_expression "(undefined4 *)(param_2 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "FUN_00047f90(iVar4,iVar6);" (call_expression "FUN_00047f90(iVar4,iVar6)" identifier (argument_list "(iVar4,iVar6)" ( identifier , identifier ))) ;) (expression_statement "FUN_00047f90(0,iVar6);" (call_expression "FUN_00047f90(0,iVar6)" identifier (argument_list "(0,iVar6)" ( number_literal , identifier ))) ;) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" identifier (argument_list "(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" ( (pointer_expression "*(undefined4 *)(param_2 + 0x44)" * (cast_expression "(undefined4 *)(param_2 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) ))) ;) (labeled_statement "LAB_00048cb0:\n      FUN_00047d60();" statement_identifier : (expression_statement "FUN_00047d60();" (call_expression "FUN_00047d60()" identifier (argument_list "()" ( ))) ;)) (if_statement "if (iVar6 == 0) goto LAB_00048bc2;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00048bc2;" goto statement_identifier ;)) (expression_statement "FUN_0002de30();" (call_expression "FUN_0002de30()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (labeled_statement "LAB_00048cd6:\n  FUN_00047f90(param_3,0);" statement_identifier : (expression_statement "FUN_00047f90(param_3,0);" (call_expression "FUN_00047f90(param_3,0)" identifier (argument_list "(param_3,0)" ( identifier , number_literal ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 windowReturnOneRow(Parse *pParse,Window *pMWin,int regGosub,int addrGosub)\n\n{\n  FuncDef *pFVar1;\n  char *pcVar2;\n  int iVar3;\n  int p1;\n  int p1_00;\n  byte bVar4;\n  Vdbe *p;\n  int p2;\n  int p2_00;\n  Window *pWVar5;\n  int local_48;\n  \n  p = pParse->pVdbe;\n  if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }\n  pWVar5 = pMWin;\n  if (pMWin != (Window *)0x0) {\n    do {\n      while( true ) {\n        pFVar1 = pWVar5->pFunc;\n        pcVar2 = pFVar1->zName;\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        pWVar5 = pWVar5->pNextWin;\n        if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;\n      }\n      iVar3 = pWVar5->csrApp;\n      p2 = pParse->nLabel + -1;\n      pParse->nLabel = p2;\n      if (pParse->nTempReg == '\0') {\n        p2_00 = pParse->nMem + 1;\n        pParse->nMem = p2_00;\n      }\n      else {\n        bVar4 = pParse->nTempReg - 1;\n        pParse->nTempReg = bVar4;\n        p2_00 = pParse->aTempReg[bVar4];\n      }\n      sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n      if (pFVar1->zName == "nth_value") {\n        sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);\n        windowCheckIntValue(pParse,p2_00,2);\n      }\n      else {\n        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);\n      }\n      sqlite3VdbeAddOp3(p,0x60,p2_00,pWVar5->regApp,p2_00);\n      sqlite3VdbeAddOp3(p,0x36,pWVar5->regApp + 1,p2,p2_00);\n      sqlite3VdbeAddOp3(p,0x1e,iVar3,0,p2_00);\n      sqlite3VdbeAddOp3(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult);\nLAB_00048cb0:\n      sqlite3VdbeResolveLabel(p,p2);\n      if (p2_00 == 0) goto LAB_00048bc2;\n      sqlite3ReleaseTempReg(pParse,p2_00);\n      pWVar5 = pWVar5->pNextWin;\n    } while (pWVar5 != (Window *)0x0);\n  }\nLAB_00048cd6:\n  sqlite3VdbeAddOp3(p,0xc,regGosub,addrGosub,0);\n  return;\n}\n\n" comment (function_definition "void __regparm3 windowReturnOneRow(Parse *pParse,Window *pMWin,int regGosub,int addrGosub)\n\n{\n  FuncDef *pFVar1;\n  char *pcVar2;\n  int iVar3;\n  int p1;\n  int p1_00;\n  byte bVar4;\n  Vdbe *p;\n  int p2;\n  int p2_00;\n  Window *pWVar5;\n  int local_48;\n  \n  p = pParse->pVdbe;\n  if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }\n  pWVar5 = pMWin;\n  if (pMWin != (Window *)0x0) {\n    do {\n      while( true ) {\n        pFVar1 = pWVar5->pFunc;\n        pcVar2 = pFVar1->zName;\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        pWVar5 = pWVar5->pNextWin;\n        if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;\n      }\n      iVar3 = pWVar5->csrApp;\n      p2 = pParse->nLabel + -1;\n      pParse->nLabel = p2;\n      if (pParse->nTempReg == '\0') {\n        p2_00 = pParse->nMem + 1;\n        pParse->nMem = p2_00;\n      }\n      else {\n        bVar4 = pParse->nTempReg - 1;\n        pParse->nTempReg = bVar4;\n        p2_00 = pParse->aTempReg[bVar4];\n      }\n      sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n      if (pFVar1->zName == "nth_value") {\n        sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);\n        windowCheckIntValue(pParse,p2_00,2);\n      }\n      else {\n        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);\n      }\n      sqlite3VdbeAddOp3(p,0x60,p2_00,pWVar5->regApp,p2_00);\n      sqlite3VdbeAddOp3(p,0x36,pWVar5->regApp + 1,p2,p2_00);\n      sqlite3VdbeAddOp3(p,0x1e,iVar3,0,p2_00);\n      sqlite3VdbeAddOp3(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult);\nLAB_00048cb0:\n      sqlite3VdbeResolveLabel(p,p2);\n      if (p2_00 == 0) goto LAB_00048bc2;\n      sqlite3ReleaseTempReg(pParse,p2_00);\n      pWVar5 = pWVar5->pNextWin;\n    } while (pWVar5 != (Window *)0x0);\n  }\nLAB_00048cd6:\n  sqlite3VdbeAddOp3(p,0xc,regGosub,addrGosub,0);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "windowReturnOneRow(Parse *pParse,Window *pMWin,int regGosub,int addrGosub)" identifier (parameter_list "(Parse *pParse,Window *pMWin,int regGosub,int addrGosub)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Window *pMWin" type_identifier (pointer_declarator "*pMWin" * identifier)) , (parameter_declaration "int regGosub" primitive_type identifier) , (parameter_declaration "int addrGosub" primitive_type identifier) ))) (compound_statement "{\n  FuncDef *pFVar1;\n  char *pcVar2;\n  int iVar3;\n  int p1;\n  int p1_00;\n  byte bVar4;\n  Vdbe *p;\n  int p2;\n  int p2_00;\n  Window *pWVar5;\n  int local_48;\n  \n  p = pParse->pVdbe;\n  if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }\n  pWVar5 = pMWin;\n  if (pMWin != (Window *)0x0) {\n    do {\n      while( true ) {\n        pFVar1 = pWVar5->pFunc;\n        pcVar2 = pFVar1->zName;\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        pWVar5 = pWVar5->pNextWin;\n        if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;\n      }\n      iVar3 = pWVar5->csrApp;\n      p2 = pParse->nLabel + -1;\n      pParse->nLabel = p2;\n      if (pParse->nTempReg == '\0') {\n        p2_00 = pParse->nMem + 1;\n        pParse->nMem = p2_00;\n      }\n      else {\n        bVar4 = pParse->nTempReg - 1;\n        pParse->nTempReg = bVar4;\n        p2_00 = pParse->aTempReg[bVar4];\n      }\n      sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n      if (pFVar1->zName == "nth_value") {\n        sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);\n        windowCheckIntValue(pParse,p2_00,2);\n      }\n      else {\n        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);\n      }\n      sqlite3VdbeAddOp3(p,0x60,p2_00,pWVar5->regApp,p2_00);\n      sqlite3VdbeAddOp3(p,0x36,pWVar5->regApp + 1,p2,p2_00);\n      sqlite3VdbeAddOp3(p,0x1e,iVar3,0,p2_00);\n      sqlite3VdbeAddOp3(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult);\nLAB_00048cb0:\n      sqlite3VdbeResolveLabel(p,p2);\n      if (p2_00 == 0) goto LAB_00048bc2;\n      sqlite3ReleaseTempReg(pParse,p2_00);\n      pWVar5 = pWVar5->pNextWin;\n    } while (pWVar5 != (Window *)0x0);\n  }\nLAB_00048cd6:\n  sqlite3VdbeAddOp3(p,0xc,regGosub,addrGosub,0);\n  return;\n}" { (declaration "FuncDef *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int p1;" primitive_type identifier ;) (declaration "int p1_00;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "Vdbe *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int p2;" primitive_type identifier ;) (declaration "int p2_00;" primitive_type identifier ;) (declaration "Window *pWVar5;" type_identifier (pointer_declarator "*pWVar5" * identifier) ;) (declaration "int local_48;" primitive_type identifier ;) (expression_statement "p = pParse->pVdbe;" (assignment_expression "p = pParse->pVdbe" identifier = (field_expression "pParse->pVdbe" identifier -> field_identifier)) ;) (if_statement "if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }" if (parenthesized_expression "(p == (Vdbe *)0x0)" ( (binary_expression "p == (Vdbe *)0x0" identifier == (cast_expression "(Vdbe *)0x0" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p = sqlite3GetVdbe(pParse);\n  }" { (expression_statement "p = sqlite3GetVdbe(pParse);" (assignment_expression "p = sqlite3GetVdbe(pParse)" identifier = (call_expression "sqlite3GetVdbe(pParse)" identifier (argument_list "(pParse)" ( identifier )))) ;) })) (expression_statement "pWVar5 = pMWin;" (assignment_expression "pWVar5 = pMWin" identifier = identifier) ;) (if_statement "if (pMWin != (Window *)0x0) {\n    do {\n      while( true ) {\n        pFVar1 = pWVar5->pFunc;\n        pcVar2 = pFVar1->zName;\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        pWVar5 = pWVar5->pNextWin;\n        if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;\n      }\n      iVar3 = pWVar5->csrApp;\n      p2 = pParse->nLabel + -1;\n      pParse->nLabel = p2;\n      if (pParse->nTempReg == '\0') {\n        p2_00 = pParse->nMem + 1;\n        pParse->nMem = p2_00;\n      }\n      else {\n        bVar4 = pParse->nTempReg - 1;\n        pParse->nTempReg = bVar4;\n        p2_00 = pParse->aTempReg[bVar4];\n      }\n      sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n      if (pFVar1->zName == "nth_value") {\n        sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);\n        windowCheckIntValue(pParse,p2_00,2);\n      }\n      else {\n        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);\n      }\n      sqlite3VdbeAddOp3(p,0x60,p2_00,pWVar5->regApp,p2_00);\n      sqlite3VdbeAddOp3(p,0x36,pWVar5->regApp + 1,p2,p2_00);\n      sqlite3VdbeAddOp3(p,0x1e,iVar3,0,p2_00);\n      sqlite3VdbeAddOp3(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult);\nLAB_00048cb0:\n      sqlite3VdbeResolveLabel(p,p2);\n      if (p2_00 == 0) goto LAB_00048bc2;\n      sqlite3ReleaseTempReg(pParse,p2_00);\n      pWVar5 = pWVar5->pNextWin;\n    } while (pWVar5 != (Window *)0x0);\n  }" if (parenthesized_expression "(pMWin != (Window *)0x0)" ( (binary_expression "pMWin != (Window *)0x0" identifier != (cast_expression "(Window *)0x0" ( (type_descriptor "Window *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      while( true ) {\n        pFVar1 = pWVar5->pFunc;\n        pcVar2 = pFVar1->zName;\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        pWVar5 = pWVar5->pNextWin;\n        if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;\n      }\n      iVar3 = pWVar5->csrApp;\n      p2 = pParse->nLabel + -1;\n      pParse->nLabel = p2;\n      if (pParse->nTempReg == '\0') {\n        p2_00 = pParse->nMem + 1;\n        pParse->nMem = p2_00;\n      }\n      else {\n        bVar4 = pParse->nTempReg - 1;\n        pParse->nTempReg = bVar4;\n        p2_00 = pParse->aTempReg[bVar4];\n      }\n      sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n      if (pFVar1->zName == "nth_value") {\n        sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);\n        windowCheckIntValue(pParse,p2_00,2);\n      }\n      else {\n        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);\n      }\n      sqlite3VdbeAddOp3(p,0x60,p2_00,pWVar5->regApp,p2_00);\n      sqlite3VdbeAddOp3(p,0x36,pWVar5->regApp + 1,p2,p2_00);\n      sqlite3VdbeAddOp3(p,0x1e,iVar3,0,p2_00);\n      sqlite3VdbeAddOp3(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult);\nLAB_00048cb0:\n      sqlite3VdbeResolveLabel(p,p2);\n      if (p2_00 == 0) goto LAB_00048bc2;\n      sqlite3ReleaseTempReg(pParse,p2_00);\n      pWVar5 = pWVar5->pNextWin;\n    } while (pWVar5 != (Window *)0x0);\n  }" { (do_statement "do {\n      while( true ) {\n        pFVar1 = pWVar5->pFunc;\n        pcVar2 = pFVar1->zName;\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        pWVar5 = pWVar5->pNextWin;\n        if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;\n      }\n      iVar3 = pWVar5->csrApp;\n      p2 = pParse->nLabel + -1;\n      pParse->nLabel = p2;\n      if (pParse->nTempReg == '\0') {\n        p2_00 = pParse->nMem + 1;\n        pParse->nMem = p2_00;\n      }\n      else {\n        bVar4 = pParse->nTempReg - 1;\n        pParse->nTempReg = bVar4;\n        p2_00 = pParse->aTempReg[bVar4];\n      }\n      sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n      if (pFVar1->zName == "nth_value") {\n        sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);\n        windowCheckIntValue(pParse,p2_00,2);\n      }\n      else {\n        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);\n      }\n      sqlite3VdbeAddOp3(p,0x60,p2_00,pWVar5->regApp,p2_00);\n      sqlite3VdbeAddOp3(p,0x36,pWVar5->regApp + 1,p2,p2_00);\n      sqlite3VdbeAddOp3(p,0x1e,iVar3,0,p2_00);\n      sqlite3VdbeAddOp3(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult);\nLAB_00048cb0:\n      sqlite3VdbeResolveLabel(p,p2);\n      if (p2_00 == 0) goto LAB_00048bc2;\n      sqlite3ReleaseTempReg(pParse,p2_00);\n      pWVar5 = pWVar5->pNextWin;\n    } while (pWVar5 != (Window *)0x0);" do (compound_statement "{\n      while( true ) {\n        pFVar1 = pWVar5->pFunc;\n        pcVar2 = pFVar1->zName;\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        pWVar5 = pWVar5->pNextWin;\n        if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;\n      }\n      iVar3 = pWVar5->csrApp;\n      p2 = pParse->nLabel + -1;\n      pParse->nLabel = p2;\n      if (pParse->nTempReg == '\0') {\n        p2_00 = pParse->nMem + 1;\n        pParse->nMem = p2_00;\n      }\n      else {\n        bVar4 = pParse->nTempReg - 1;\n        pParse->nTempReg = bVar4;\n        p2_00 = pParse->aTempReg[bVar4];\n      }\n      sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n      if (pFVar1->zName == "nth_value") {\n        sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);\n        windowCheckIntValue(pParse,p2_00,2);\n      }\n      else {\n        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);\n      }\n      sqlite3VdbeAddOp3(p,0x60,p2_00,pWVar5->regApp,p2_00);\n      sqlite3VdbeAddOp3(p,0x36,pWVar5->regApp + 1,p2,p2_00);\n      sqlite3VdbeAddOp3(p,0x1e,iVar3,0,p2_00);\n      sqlite3VdbeAddOp3(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult);\nLAB_00048cb0:\n      sqlite3VdbeResolveLabel(p,p2);\n      if (p2_00 == 0) goto LAB_00048bc2;\n      sqlite3ReleaseTempReg(pParse,p2_00);\n      pWVar5 = pWVar5->pNextWin;\n    }" { (while_statement "while( true ) {\n        pFVar1 = pWVar5->pFunc;\n        pcVar2 = pFVar1->zName;\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        pWVar5 = pWVar5->pNextWin;\n        if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        pFVar1 = pWVar5->pFunc;\n        pcVar2 = pFVar1->zName;\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        pWVar5 = pWVar5->pNextWin;\n        if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;\n      }" { (expression_statement "pFVar1 = pWVar5->pFunc;" (assignment_expression "pFVar1 = pWVar5->pFunc" identifier = (field_expression "pWVar5->pFunc" identifier -> field_identifier)) ;) (expression_statement "pcVar2 = pFVar1->zName;" (assignment_expression "pcVar2 = pFVar1->zName" identifier = (field_expression "pFVar1->zName" identifier -> field_identifier)) ;) (if_statement "if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;" if (parenthesized_expression "((pcVar2 == "nth_value") || (pcVar2 == "first_value"))" ( (binary_expression "(pcVar2 == "nth_value") || (pcVar2 == "first_value")" (parenthesized_expression "(pcVar2 == "nth_value")" ( (binary_expression "pcVar2 == "nth_value"" identifier == (string_literal ""nth_value"" " string_content ")) )) || (parenthesized_expression "(pcVar2 == "first_value")" ( (binary_expression "pcVar2 == "first_value"" identifier == (string_literal ""first_value"" " string_content ")) ))) )) (break_statement "break;" break ;)) (if_statement "if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }" if (parenthesized_expression "((pcVar2 == "lead") || (pcVar2 == "lag"))" ( (binary_expression "(pcVar2 == "lead") || (pcVar2 == "lag")" (parenthesized_expression "(pcVar2 == "lead")" ( (binary_expression "pcVar2 == "lead"" identifier == (string_literal ""lead"" " string_content ")) )) || (parenthesized_expression "(pcVar2 == "lag")" ( (binary_expression "pcVar2 == "lag"" identifier == (string_literal ""lag"" " string_content ")) ))) )) (compound_statement "{\n          iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;\n          p1 = pMWin->iEphCsr;\n          p1_00 = pWVar5->csrApp;\n          p2 = pParse->nLabel + -1;\n          pParse->nLabel = p2;\n          if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }\n          if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }\n          sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);\n          sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);\n          goto LAB_00048cb0;\n        }" { (expression_statement "iVar3 = ((pWVar5->pOwner->x).pList)->nExpr;" (assignment_expression "iVar3 = ((pWVar5->pOwner->x).pList)->nExpr" identifier = (field_expression "((pWVar5->pOwner->x).pList)->nExpr" (parenthesized_expression "((pWVar5->pOwner->x).pList)" ( (field_expression "(pWVar5->pOwner->x).pList" (parenthesized_expression "(pWVar5->pOwner->x)" ( (field_expression "pWVar5->pOwner->x" (field_expression "pWVar5->pOwner" identifier -> field_identifier) -> field_identifier) )) . field_identifier) )) -> field_identifier)) ;) (expression_statement "p1 = pMWin->iEphCsr;" (assignment_expression "p1 = pMWin->iEphCsr" identifier = (field_expression "pMWin->iEphCsr" identifier -> field_identifier)) ;) (expression_statement "p1_00 = pWVar5->csrApp;" (assignment_expression "p1_00 = pWVar5->csrApp" identifier = (field_expression "pWVar5->csrApp" identifier -> field_identifier)) ;) (expression_statement "p2 = pParse->nLabel + -1;" (assignment_expression "p2 = pParse->nLabel + -1" identifier = (binary_expression "pParse->nLabel + -1" (field_expression "pParse->nLabel" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nLabel = p2;" (assignment_expression "pParse->nLabel = p2" (field_expression "pParse->nLabel" identifier -> field_identifier) = identifier) ;) (if_statement "if (pParse->nTempReg == '\0') {\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }\n          else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }" if (parenthesized_expression "(pParse->nTempReg == '\0')" ( (binary_expression "pParse->nTempReg == '\0'" (field_expression "pParse->nTempReg" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            p2_00 = pParse->nMem + 1;\n            pParse->nMem = p2_00;\n          }" { (expression_statement "p2_00 = pParse->nMem + 1;" (assignment_expression "p2_00 = pParse->nMem + 1" identifier = (binary_expression "pParse->nMem + 1" (field_expression "pParse->nMem" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nMem = p2_00;" (assignment_expression "pParse->nMem = p2_00" (field_expression "pParse->nMem" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }" else (compound_statement "{\n            bVar4 = pParse->nTempReg - 1;\n            pParse->nTempReg = bVar4;\n            p2_00 = pParse->aTempReg[bVar4];\n          }" { (expression_statement "bVar4 = pParse->nTempReg - 1;" (assignment_expression "bVar4 = pParse->nTempReg - 1" identifier = (binary_expression "pParse->nTempReg - 1" (field_expression "pParse->nTempReg" identifier -> field_identifier) - number_literal)) ;) (expression_statement "pParse->nTempReg = bVar4;" (assignment_expression "pParse->nTempReg = bVar4" (field_expression "pParse->nTempReg" identifier -> field_identifier) = identifier) ;) (expression_statement "p2_00 = pParse->aTempReg[bVar4];" (assignment_expression "p2_00 = pParse->aTempReg[bVar4]" identifier = (subscript_expression "pParse->aTempReg[bVar4]" (field_expression "pParse->aTempReg" identifier -> field_identifier) [ identifier ])) ;) }))) (if_statement "if (iVar3 < 3) {\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }\n          else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }" if (parenthesized_expression "(iVar3 < 3)" ( (binary_expression "iVar3 < 3" identifier < number_literal) )) (compound_statement "{\n            sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\n            if (iVar3 == 2) goto LAB_00048e7b;\n            sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);\n          }" { (expression_statement "sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);" (call_expression "sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0)" identifier (argument_list "(p,0x49,0,pWVar5->regResult,0)" ( identifier , number_literal , number_literal , (field_expression "pWVar5->regResult" identifier -> field_identifier) , number_literal ))) ;) (expression_statement "sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);" (call_expression "sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0)" identifier (argument_list "(p,0x80,p1,p2_00,0)" ( identifier , number_literal , identifier , identifier , number_literal ))) ;) (if_statement "if (iVar3 == 2) goto LAB_00048e7b;" if (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) (goto_statement "goto LAB_00048e7b;" goto statement_identifier ;)) (expression_statement "sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0);" (call_expression "sqlite3VdbeAddOp3(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0)" identifier (argument_list "(p,0x53,p2_00,(uint)(pFVar1->zName == "lead") * 2 + -1,0)" ( identifier , number_literal , identifier , (binary_expression "(uint)(pFVar1->zName == "lead") * 2 + -1" (binary_expression "(uint)(pFVar1->zName == "lead") * 2" (call_expression "(uint)(pFVar1->zName == "lead")" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pFVar1->zName == "lead")" ( (binary_expression "pFVar1->zName == "lead"" (field_expression "pFVar1->zName" identifier -> field_identifier) == (string_literal ""lead"" " string_content ")) ))) * number_literal) + number_literal) , number_literal ))) ;) }) (else_clause "else {\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }" else (compound_statement "{\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);\n            sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);\nLAB_00048e7b:\n            pcVar2 = pFVar1->zName;\n            if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }\n            sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);\n            sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);\n            if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }\n          }" { (expression_statement "sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult);" (call_expression "sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult)" identifier (argument_list "(p,0x5a,p1,pWVar5->iArgCol + 2,pWVar5->regResult)" ( identifier , number_literal , identifier , (binary_expression "pWVar5->iArgCol + 2" (field_expression "pWVar5->iArgCol" identifier -> field_identifier) + number_literal) , (field_expression "pWVar5->regResult" identifier -> field_identifier) ))) ;) (expression_statement "sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0);" (call_expression "sqlite3VdbeAddOp3(p,0x80,p1,p2_00,0)" identifier (argument_list "(p,0x80,p1,p2_00,0)" ( identifier , number_literal , identifier , identifier , number_literal ))) ;) (labeled_statement "LAB_00048e7b:\n            pcVar2 = pFVar1->zName;" statement_identifier : (expression_statement "pcVar2 = pFVar1->zName;" (assignment_expression "pcVar2 = pFVar1->zName" identifier = (field_expression "pFVar1->zName" identifier -> field_identifier)) ;)) (if_statement "if (pParse->nTempReg == '\0') {\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }\n            else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }" if (parenthesized_expression "(pParse->nTempReg == '\0')" ( (binary_expression "pParse->nTempReg == '\0'" (field_expression "pParse->nTempReg" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              local_48 = pParse->nMem + 1;\n              pParse->nMem = local_48;\n            }" { (expression_statement "local_48 = pParse->nMem + 1;" (assignment_expression "local_48 = pParse->nMem + 1" identifier = (binary_expression "pParse->nMem + 1" (field_expression "pParse->nMem" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nMem = local_48;" (assignment_expression "pParse->nMem = local_48" (field_expression "pParse->nMem" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }" else (compound_statement "{\n              bVar4 = pParse->nTempReg - 1;\n              pParse->nTempReg = bVar4;\n              local_48 = pParse->aTempReg[bVar4];\n            }" { (expression_statement "bVar4 = pParse->nTempReg - 1;" (assignment_expression "bVar4 = pParse->nTempReg - 1" identifier = (binary_expression "pParse->nTempReg - 1" (field_expression "pParse->nTempReg" identifier -> field_identifier) - number_literal)) ;) (expression_statement "pParse->nTempReg = bVar4;" (assignment_expression "pParse->nTempReg = bVar4" (field_expression "pParse->nTempReg" identifier -> field_identifier) = identifier) ;) (expression_statement "local_48 = pParse->aTempReg[bVar4];" (assignment_expression "local_48 = pParse->aTempReg[bVar4]" identifier = (subscript_expression "pParse->aTempReg[bVar4]" (field_expression "pParse->aTempReg" identifier -> field_identifier) [ identifier ])) ;) }))) (expression_statement "sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48);" (call_expression "sqlite3VdbeAddOp3(p,0x5a,p1,pWVar5->iArgCol + 1,local_48)" identifier (argument_list "(p,0x5a,p1,pWVar5->iArgCol + 1,local_48)" ( identifier , number_literal , identifier , (binary_expression "pWVar5->iArgCol + 1" (field_expression "pWVar5->iArgCol" identifier -> field_identifier) + number_literal) , identifier ))) ;) (expression_statement "sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00);" (call_expression "sqlite3VdbeAddOp3(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00)" identifier (argument_list "(p,(pcVar2 != "lead") + 0x60,local_48,p2_00,p2_00)" ( identifier , (binary_expression "(pcVar2 != "lead") + 0x60" (parenthesized_expression "(pcVar2 != "lead")" ( (binary_expression "pcVar2 != "lead"" identifier != (string_literal ""lead"" " string_content ")) )) + number_literal) , identifier , identifier , identifier ))) ;) (if_statement "if (local_48 != 0) {\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }" if (parenthesized_expression "(local_48 != 0)" ( (binary_expression "local_48 != 0" identifier != number_literal) )) (compound_statement "{\n              sqlite3ReleaseTempReg(pParse,local_48);\n            }" { (expression_statement "sqlite3ReleaseTempReg(pParse,local_48);" (call_expression "sqlite3ReleaseTempReg(pParse,local_48)" identifier (argument_list "(pParse,local_48)" ( identifier , identifier ))) ;) })) }))) (expression_statement "sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00);" (call_expression "sqlite3VdbeAddOp3(p,0x1e,p1_00,p2,p2_00)" identifier (argument_list "(p,0x1e,p1_00,p2,p2_00)" ( identifier , number_literal , identifier , identifier , identifier ))) ;) (expression_statement "sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult);" (call_expression "sqlite3VdbeAddOp3(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult)" identifier (argument_list "(p,0x5a,p1_00,pWVar5->iArgCol,pWVar5->regResult)" ( identifier , number_literal , identifier , (field_expression "pWVar5->iArgCol" identifier -> field_identifier) , (field_expression "pWVar5->regResult" identifier -> field_identifier) ))) ;) (goto_statement "goto LAB_00048cb0;" goto statement_identifier ;) })) (labeled_statement "LAB_00048bc2:\n        pWVar5 = pWVar5->pNextWin;" statement_identifier : (expression_statement "pWVar5 = pWVar5->pNextWin;" (assignment_expression "pWVar5 = pWVar5->pNextWin" identifier = (field_expression "pWVar5->pNextWin" identifier -> field_identifier)) ;)) (if_statement "if (pWVar5 == (Window *)0x0) goto LAB_00048cd6;" if (parenthesized_expression "(pWVar5 == (Window *)0x0)" ( (binary_expression "pWVar5 == (Window *)0x0" identifier == (cast_expression "(Window *)0x0" ( (type_descriptor "Window *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00048cd6;" goto statement_identifier ;)) })) (expression_statement "iVar3 = pWVar5->csrApp;" (assignment_expression "iVar3 = pWVar5->csrApp" identifier = (field_expression "pWVar5->csrApp" identifier -> field_identifier)) ;) (expression_statement "p2 = pParse->nLabel + -1;" (assignment_expression "p2 = pParse->nLabel + -1" identifier = (binary_expression "pParse->nLabel + -1" (field_expression "pParse->nLabel" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nLabel = p2;" (assignment_expression "pParse->nLabel = p2" (field_expression "pParse->nLabel" identifier -> field_identifier) = identifier) ;) (if_statement "if (pParse->nTempReg == '\0') {\n        p2_00 = pParse->nMem + 1;\n        pParse->nMem = p2_00;\n      }\n      else {\n        bVar4 = pParse->nTempReg - 1;\n        pParse->nTempReg = bVar4;\n        p2_00 = pParse->aTempReg[bVar4];\n      }" if (parenthesized_expression "(pParse->nTempReg == '\0')" ( (binary_expression "pParse->nTempReg == '\0'" (field_expression "pParse->nTempReg" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        p2_00 = pParse->nMem + 1;\n        pParse->nMem = p2_00;\n      }" { (expression_statement "p2_00 = pParse->nMem + 1;" (assignment_expression "p2_00 = pParse->nMem + 1" identifier = (binary_expression "pParse->nMem + 1" (field_expression "pParse->nMem" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nMem = p2_00;" (assignment_expression "pParse->nMem = p2_00" (field_expression "pParse->nMem" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n        bVar4 = pParse->nTempReg - 1;\n        pParse->nTempReg = bVar4;\n        p2_00 = pParse->aTempReg[bVar4];\n      }" else (compound_statement "{\n        bVar4 = pParse->nTempReg - 1;\n        pParse->nTempReg = bVar4;\n        p2_00 = pParse->aTempReg[bVar4];\n      }" { (expression_statement "bVar4 = pParse->nTempReg - 1;" (assignment_expression "bVar4 = pParse->nTempReg - 1" identifier = (binary_expression "pParse->nTempReg - 1" (field_expression "pParse->nTempReg" identifier -> field_identifier) - number_literal)) ;) (expression_statement "pParse->nTempReg = bVar4;" (assignment_expression "pParse->nTempReg = bVar4" (field_expression "pParse->nTempReg" identifier -> field_identifier) = identifier) ;) (expression_statement "p2_00 = pParse->aTempReg[bVar4];" (assignment_expression "p2_00 = pParse->aTempReg[bVar4]" identifier = (subscript_expression "pParse->aTempReg[bVar4]" (field_expression "pParse->aTempReg" identifier -> field_identifier) [ identifier ])) ;) }))) (expression_statement "sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0);" (call_expression "sqlite3VdbeAddOp3(p,0x49,0,pWVar5->regResult,0)" identifier (argument_list "(p,0x49,0,pWVar5->regResult,0)" ( identifier , number_literal , number_literal , (field_expression "pWVar5->regResult" identifier -> field_identifier) , number_literal ))) ;) (if_statement "if (pFVar1->zName == "nth_value") {\n        sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);\n        windowCheckIntValue(pParse,p2_00,2);\n      }\n      else {\n        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);\n      }" if (parenthesized_expression "(pFVar1->zName == "nth_value")" ( (binary_expression "pFVar1->zName == "nth_value"" (field_expression "pFVar1->zName" identifier -> field_identifier) == (string_literal ""nth_value"" " string_content ")) )) (compound_statement "{\n        sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);\n        windowCheckIntValue(pParse,p2_00,2);\n      }" { (expression_statement "sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00);" (call_expression "sqlite3VdbeAddOp3(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00)" identifier (argument_list "(p,0x5a,pMWin->iEphCsr,pWVar5->iArgCol + 1,p2_00)" ( identifier , number_literal , (field_expression "pMWin->iEphCsr" identifier -> field_identifier) , (binary_expression "pWVar5->iArgCol + 1" (field_expression "pWVar5->iArgCol" identifier -> field_identifier) + number_literal) , identifier ))) ;) (expression_statement "windowCheckIntValue(pParse,p2_00,2);" (call_expression "windowCheckIntValue(pParse,p2_00,2)" identifier (argument_list "(pParse,p2_00,2)" ( identifier , identifier , number_literal ))) ;) }) (else_clause "else {\n        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);\n      }" else (compound_statement "{\n        sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);\n      }" { (expression_statement "sqlite3VdbeAddOp3(p,0x46,1,p2_00,0);" (call_expression "sqlite3VdbeAddOp3(p,0x46,1,p2_00,0)" identifier (argument_list "(p,0x46,1,p2_00,0)" ( identifier , number_literal , number_literal , identifier , number_literal ))) ;) }))) (expression_statement "sqlite3VdbeAddOp3(p,0x60,p2_00,pWVar5->regApp,p2_00);" (call_expression "sqlite3VdbeAddOp3(p,0x60,p2_00,pWVar5->regApp,p2_00)" identifier (argument_list "(p,0x60,p2_00,pWVar5->regApp,p2_00)" ( identifier , number_literal , identifier , (field_expression "pWVar5->regApp" identifier -> field_identifier) , identifier ))) ;) (expression_statement "sqlite3VdbeAddOp3(p,0x36,pWVar5->regApp + 1,p2,p2_00);" (call_expression "sqlite3VdbeAddOp3(p,0x36,pWVar5->regApp + 1,p2,p2_00)" identifier (argument_list "(p,0x36,pWVar5->regApp + 1,p2,p2_00)" ( identifier , number_literal , (binary_expression "pWVar5->regApp + 1" (field_expression "pWVar5->regApp" identifier -> field_identifier) + number_literal) , identifier , identifier ))) ;) (expression_statement "sqlite3VdbeAddOp3(p,0x1e,iVar3,0,p2_00);" (call_expression "sqlite3VdbeAddOp3(p,0x1e,iVar3,0,p2_00)" identifier (argument_list "(p,0x1e,iVar3,0,p2_00)" ( identifier , number_literal , identifier , number_literal , identifier ))) ;) (expression_statement "sqlite3VdbeAddOp3(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult);" (call_expression "sqlite3VdbeAddOp3(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult)" identifier (argument_list "(p,0x5a,iVar3,pWVar5->iArgCol,pWVar5->regResult)" ( identifier , number_literal , identifier , (field_expression "pWVar5->iArgCol" identifier -> field_identifier) , (field_expression "pWVar5->regResult" identifier -> field_identifier) ))) ;) (labeled_statement "LAB_00048cb0:\n      sqlite3VdbeResolveLabel(p,p2);" statement_identifier : (expression_statement "sqlite3VdbeResolveLabel(p,p2);" (call_expression "sqlite3VdbeResolveLabel(p,p2)" identifier (argument_list "(p,p2)" ( identifier , identifier ))) ;)) (if_statement "if (p2_00 == 0) goto LAB_00048bc2;" if (parenthesized_expression "(p2_00 == 0)" ( (binary_expression "p2_00 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00048bc2;" goto statement_identifier ;)) (expression_statement "sqlite3ReleaseTempReg(pParse,p2_00);" (call_expression "sqlite3ReleaseTempReg(pParse,p2_00)" identifier (argument_list "(pParse,p2_00)" ( identifier , identifier ))) ;) (expression_statement "pWVar5 = pWVar5->pNextWin;" (assignment_expression "pWVar5 = pWVar5->pNextWin" identifier = (field_expression "pWVar5->pNextWin" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pWVar5 != (Window *)0x0)" ( (binary_expression "pWVar5 != (Window *)0x0" identifier != (cast_expression "(Window *)0x0" ( (type_descriptor "Window *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (labeled_statement "LAB_00048cd6:\n  sqlite3VdbeAddOp3(p,0xc,regGosub,addrGosub,0);" statement_identifier : (expression_statement "sqlite3VdbeAddOp3(p,0xc,regGosub,addrGosub,0);" (call_expression "sqlite3VdbeAddOp3(p,0xc,regGosub,addrGosub,0)" identifier (argument_list "(p,0xc,regGosub,addrGosub,0)" ( identifier , number_literal , identifier , identifier , number_literal ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void __regparm2 FUN_00048b40(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  byte bVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int local_48;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }\n  if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }\nLAB_00048cd6:\n  FUN_00047f90(param_3,0);\n  return;\n}\n\n" (function_definition "void __regparm2 FUN_00048b40(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  byte bVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int local_48;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }\n  if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }\nLAB_00048cd6:\n  FUN_00047f90(param_3,0);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00048b40(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  byte bVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int local_48;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }\n  if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }\nLAB_00048cd6:\n  FUN_00047f90(param_3,0);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    FUN_000480a0();\n  }" { (expression_statement "FUN_000480a0();" (call_expression "FUN_000480a0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }" { (do_statement "do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);" do (compound_statement "{\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    }" { (while_statement "while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }" { (expression_statement "iVar1 = *(int *)(param_2 + 0x20);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x20)" identifier = (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = *(char **)(iVar1 + 0x20);" (assignment_expression "pcVar2 = *(char **)(iVar1 + 0x20)" identifier = (pointer_expression "*(char **)(iVar1 + 0x20)" * (cast_expression "(char **)(iVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;" if (parenthesized_expression "((pcVar2 == "nth_value") || (pcVar2 == "first_value"))" ( (binary_expression "(pcVar2 == "nth_value") || (pcVar2 == "first_value")" (parenthesized_expression "(pcVar2 == "nth_value")" ( (binary_expression "pcVar2 == "nth_value"" identifier == (string_literal ""nth_value"" " string_content ")) )) || (parenthesized_expression "(pcVar2 == "first_value")" ( (binary_expression "pcVar2 == "first_value"" identifier == (string_literal ""first_value"" " string_content ")) ))) )) (break_statement "break;" break ;)) (if_statement "if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }" if (parenthesized_expression "((pcVar2 == "lead") || (pcVar2 == "lag"))" ( (binary_expression "(pcVar2 == "lead") || (pcVar2 == "lag")" (parenthesized_expression "(pcVar2 == "lead")" ( (binary_expression "pcVar2 == "lead"" identifier == (string_literal ""lead"" " string_content ")) )) || (parenthesized_expression "(pcVar2 == "lag")" ( (binary_expression "pcVar2 == "lag"" identifier == (string_literal ""lag"" " string_content ")) ))) )) (compound_statement "{\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }" { (expression_statement "iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);" (assignment_expression "iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14)" identifier = (pointer_expression "**(int **)(*(int *)(param_2 + 0x3c) + 0x14)" * (pointer_expression "*(int **)(*(int *)(param_2 + 0x3c) + 0x14)" * (cast_expression "(int **)(*(int *)(param_2 + 0x3c) + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_2 + 0x3c) + 0x14)" ( (binary_expression "*(int *)(param_2 + 0x3c) + 0x14" (pointer_expression "*(int *)(param_2 + 0x3c)" * (cast_expression "(int *)(param_2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) + number_literal) )))))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x38) + -1;" (assignment_expression "iVar5 = *(int *)(param_1 + 0x38) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x38) + -1" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x38) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x38) = iVar5" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }" if (parenthesized_expression "(*(char *)(param_1 + 0x13) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x13) == '\0'" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }" { (expression_statement "iVar6 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar6" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }" else (compound_statement "{\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }" { (expression_statement "bVar3 = *(char *)(param_1 + 0x13) - 1;" (assignment_expression "bVar3 = *(char *)(param_1 + 0x13) - 1" identifier = (binary_expression "*(char *)(param_1 + 0x13) - 1" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) - number_literal)) ;) (expression_statement "*(byte *)(param_1 + 0x13) = bVar3;" (assignment_expression "*(byte *)(param_1 + 0x13) = bVar3" (pointer_expression "*(byte *)(param_1 + 0x13)" * (cast_expression "(byte *)(param_1 + 0x13)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" identifier = (pointer_expression "*(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" * (cast_expression "(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90 + (uint)bVar3 * 4)" ( (binary_expression "param_1 + 0x90 + (uint)bVar3 * 4" (binary_expression "param_1 + 0x90" identifier + number_literal) + (binary_expression "(uint)bVar3 * 4" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) }))) (if_statement "if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }" if (parenthesized_expression "(iVar4 < 3)" ( (binary_expression "iVar4 < 3" identifier < number_literal) )) (compound_statement "{\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }" { (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x2c),0)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "FUN_00047f90(iVar6,0);" (call_expression "FUN_00047f90(iVar6,0)" identifier (argument_list "(iVar6,0)" ( identifier , number_literal ))) ;) (if_statement "if (iVar4 == 2) goto LAB_00048e7b;" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (goto_statement "goto LAB_00048e7b;" goto statement_identifier ;)) (expression_statement "FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);" (call_expression "FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0)" identifier (argument_list "((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0)" ( (binary_expression "(uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1" (binary_expression "(uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2" (call_expression "(uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8)" ( (binary_expression "*(undefined **)(iVar1 + 0x20) == &DAT_001024d8" (pointer_expression "*(undefined **)(iVar1 + 0x20)" * (cast_expression "(undefined **)(iVar1 + 0x20)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) == (pointer_expression "&DAT_001024d8" & identifier)) ))) * number_literal) + number_literal) , number_literal ))) ;) }) (else_clause "else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }" else (compound_statement "{\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }" { (expression_statement "FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c))" identifier (argument_list "(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c))" ( (binary_expression "*(int *)(param_2 + 0x44) + 2" (pointer_expression "*(int *)(param_2 + 0x44)" * (cast_expression "(int *)(param_2 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00047f90(iVar6,0);" (call_expression "FUN_00047f90(iVar6,0)" identifier (argument_list "(iVar6,0)" ( identifier , number_literal ))) ;) (labeled_statement "LAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" statement_identifier : (if_statement "if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" if (parenthesized_expression "(*(char *)(param_1 + 0x13) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x13) == '\0'" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }" { (expression_statement "local_48 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "local_48 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = local_48;" (assignment_expression "*(int *)(param_1 + 0x2c) = local_48" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" else (compound_statement "{\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" { (expression_statement "bVar3 = *(char *)(param_1 + 0x13) - 1;" (assignment_expression "bVar3 = *(char *)(param_1 + 0x13) - 1" identifier = (binary_expression "*(char *)(param_1 + 0x13) - 1" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) - number_literal)) ;) (expression_statement "*(byte *)(param_1 + 0x13) = bVar3;" (assignment_expression "*(byte *)(param_1 + 0x13) = bVar3" (pointer_expression "*(byte *)(param_1 + 0x13)" * (cast_expression "(byte *)(param_1 + 0x13)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) = identifier) ;) (expression_statement "local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);" (assignment_expression "local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" identifier = (pointer_expression "*(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" * (cast_expression "(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90 + (uint)bVar3 * 4)" ( (binary_expression "param_1 + 0x90 + (uint)bVar3 * 4" (binary_expression "param_1 + 0x90" identifier + number_literal) + (binary_expression "(uint)bVar3 * 4" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) })))) (expression_statement "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);" (call_expression "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48)" identifier (argument_list "(*(int *)(param_2 + 0x44) + 1,local_48)" ( (binary_expression "*(int *)(param_2 + 0x44) + 1" (pointer_expression "*(int *)(param_2 + 0x44)" * (cast_expression "(int *)(param_2 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) + number_literal) , identifier ))) ;) (expression_statement "FUN_00047f90(iVar6,iVar6);" (call_expression "FUN_00047f90(iVar6,iVar6)" identifier (argument_list "(iVar6,iVar6)" ( identifier , identifier ))) ;) (if_statement "if (local_48 != 0) {\n              FUN_0002de30();\n            }" if (parenthesized_expression "(local_48 != 0)" ( (binary_expression "local_48 != 0" identifier != number_literal) )) (compound_statement "{\n              FUN_0002de30();\n            }" { (expression_statement "FUN_0002de30();" (call_expression "FUN_0002de30()" identifier (argument_list "()" ( ))) ;) })) }))) (expression_statement "FUN_00047f90(iVar5,iVar6);" (call_expression "FUN_00047f90(iVar5,iVar6)" identifier (argument_list "(iVar5,iVar6)" ( identifier , identifier ))) ;) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" identifier (argument_list "(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" ( (pointer_expression "*(undefined4 *)(param_2 + 0x44)" * (cast_expression "(undefined4 *)(param_2 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) ))) ;) (goto_statement "goto LAB_00048cb0;" goto statement_identifier ;) })) (labeled_statement "LAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);" statement_identifier : (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;)) (if_statement "if (param_2 == 0) goto LAB_00048cd6;" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00048cd6;" goto statement_identifier ;)) })) (expression_statement "iVar4 = *(int *)(param_1 + 0x38) + -1;" (assignment_expression "iVar4 = *(int *)(param_1 + 0x38) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x38) + -1" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x38) = iVar4;" (assignment_expression "*(int *)(param_1 + 0x38) = iVar4" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x13) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x13) == '\0'" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }" { (expression_statement "iVar6 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar6" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }" else (compound_statement "{\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }" { (expression_statement "bVar3 = *(char *)(param_1 + 0x13) - 1;" (assignment_expression "bVar3 = *(char *)(param_1 + 0x13) - 1" identifier = (binary_expression "*(char *)(param_1 + 0x13) - 1" (pointer_expression "*(char *)(param_1 + 0x13)" * (cast_expression "(char *)(param_1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) - number_literal)) ;) (expression_statement "*(byte *)(param_1 + 0x13) = bVar3;" (assignment_expression "*(byte *)(param_1 + 0x13) = bVar3" (pointer_expression "*(byte *)(param_1 + 0x13)" * (cast_expression "(byte *)(param_1 + 0x13)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13)" ( (binary_expression "param_1 + 0x13" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" identifier = (pointer_expression "*(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" * (cast_expression "(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90 + (uint)bVar3 * 4)" ( (binary_expression "param_1 + 0x90 + (uint)bVar3 * 4" (binary_expression "param_1 + 0x90" identifier + number_literal) + (binary_expression "(uint)bVar3 * 4" (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) ))))) ;) }))) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x2c),0)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) , number_literal ))) ;) (if_statement "if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }" if (parenthesized_expression "(*(char **)(iVar1 + 0x20) == "nth_value")" ( (binary_expression "*(char **)(iVar1 + 0x20) == "nth_value"" (pointer_expression "*(char **)(iVar1 + 0x20)" * (cast_expression "(char **)(iVar1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) == (string_literal ""nth_value"" " string_content ")) )) (compound_statement "{\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }" { (expression_statement "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);" (call_expression "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6)" identifier (argument_list "(*(int *)(param_2 + 0x44) + 1,iVar6)" ( (binary_expression "*(int *)(param_2 + 0x44) + 1" (pointer_expression "*(int *)(param_2 + 0x44)" * (cast_expression "(int *)(param_2 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) + number_literal) , identifier ))) ;) (expression_statement "FUN_00048880();" (call_expression "FUN_00048880()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n        FUN_00047f90(iVar6,0);\n      }" else (compound_statement "{\n        FUN_00047f90(iVar6,0);\n      }" { (expression_statement "FUN_00047f90(iVar6,0);" (call_expression "FUN_00047f90(iVar6,0)" identifier (argument_list "(iVar6,0)" ( identifier , number_literal ))) ;) }))) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x34),iVar6)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x34)" * (cast_expression "(undefined4 *)(param_2 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "FUN_00047f90(iVar4,iVar6);" (call_expression "FUN_00047f90(iVar4,iVar6)" identifier (argument_list "(iVar4,iVar6)" ( identifier , identifier ))) ;) (expression_statement "FUN_00047f90(0,iVar6);" (call_expression "FUN_00047f90(0,iVar6)" identifier (argument_list "(0,iVar6)" ( number_literal , identifier ))) ;) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" identifier (argument_list "(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" ( (pointer_expression "*(undefined4 *)(param_2 + 0x44)" * (cast_expression "(undefined4 *)(param_2 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) ))) ;) (labeled_statement "LAB_00048cb0:\n      FUN_00047d60();" statement_identifier : (expression_statement "FUN_00047d60();" (call_expression "FUN_00047d60()" identifier (argument_list "()" ( ))) ;)) (if_statement "if (iVar6 == 0) goto LAB_00048bc2;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00048bc2;" goto statement_identifier ;)) (expression_statement "FUN_0002de30();" (call_expression "FUN_0002de30()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (labeled_statement "LAB_00048cd6:\n  FUN_00047f90(param_3,0);" statement_identifier : (expression_statement "FUN_00047f90(param_3,0);" (call_expression "FUN_00047f90(param_3,0)" identifier (argument_list "(param_3,0)" ( identifier , number_literal ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (string_literal " string_content ")) )) || (parenthesized_expression ( (binary_expression IDENT == (string_literal " string_content ")) ))) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (string_literal " string_content ")) )) || (parenthesized_expression ( (binary_expression IDENT == (string_literal " string_content ")) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression & IDENT)) ))) * LIT) + LIT) , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) ))))) ;) })))) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) ))))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (string_literal " string_content ")) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;)) (return_statement return ;) })))
(function_definition "void __regparm2 FUN_00048b40(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  byte bVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int local_48;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }\n  if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }\nLAB_00048cd6:\n  FUN_00047f90(param_3,0);\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00048b40(int param_1,int param_2,undefined4 param_3)" (identifier "FUN_00048b40") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  byte bVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int local_48;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }\n  if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }\nLAB_00048cd6:\n  FUN_00047f90(param_3,0);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int local_48;" (primitive_type "int") (identifier "local_48") (; ";")) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    FUN_000480a0();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000480a0();\n  }" ({ "{") (expression_statement "FUN_000480a0();" (call_expression "FUN_000480a0()" (identifier "FUN_000480a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);\n  }" ({ "{") (do_statement "do {\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    } while (param_2 != 0);" (do "do") (compound_statement "{\n      while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }\n      iVar4 = *(int *)(param_1 + 0x38) + -1;\n      *(int *)(param_1 + 0x38) = iVar4;\n      if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n      if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);\n      FUN_00047f90(iVar4,iVar6);\n      FUN_00047f90(0,iVar6);\n      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\nLAB_00048cb0:\n      FUN_00047d60();\n      if (iVar6 == 0) goto LAB_00048bc2;\n      FUN_0002de30();\n      param_2 = *(int *)(param_2 + 0x18);\n    }" ({ "{") (while_statement "while( true ) {\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar1 = *(int *)(param_2 + 0x20);\n        pcVar2 = *(char **)(iVar1 + 0x20);\n        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;\n        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }\nLAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) goto LAB_00048cd6;\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(param_2 + 0x20);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x20)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "pcVar2 = *(char **)(iVar1 + 0x20);" (assignment_expression "pcVar2 = *(char **)(iVar1 + 0x20)" (identifier "pcVar2") (= "=") (pointer_expression "*(char **)(iVar1 + 0x20)" (* "*") (cast_expression "(char **)(iVar1 + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;" (if "if") (parenthesized_expression "((pcVar2 == "nth_value") || (pcVar2 == "first_value"))" (( "(") (binary_expression "(pcVar2 == "nth_value") || (pcVar2 == "first_value")" (parenthesized_expression "(pcVar2 == "nth_value")" (( "(") (binary_expression "pcVar2 == "nth_value"" (identifier "pcVar2") (== "==") (string_literal ""nth_value"" (" """) (string_content "nth_value") (" """))) () ")")) (|| "||") (parenthesized_expression "(pcVar2 == "first_value")" (( "(") (binary_expression "pcVar2 == "first_value"" (identifier "pcVar2") (== "==") (string_literal ""first_value"" (" """) (string_content "first_value") (" """))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((pcVar2 == "lead") || (pcVar2 == "lag")) {\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }" (if "if") (parenthesized_expression "((pcVar2 == "lead") || (pcVar2 == "lag"))" (( "(") (binary_expression "(pcVar2 == "lead") || (pcVar2 == "lag")" (parenthesized_expression "(pcVar2 == "lead")" (( "(") (binary_expression "pcVar2 == "lead"" (identifier "pcVar2") (== "==") (string_literal ""lead"" (" """) (string_content "lead") (" """))) () ")")) (|| "||") (parenthesized_expression "(pcVar2 == "lag")" (( "(") (binary_expression "pcVar2 == "lag"" (identifier "pcVar2") (== "==") (string_literal ""lag"" (" """) (string_content "lag") (" """))) () ")"))) () ")")) (compound_statement "{\n          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);\n          iVar5 = *(int *)(param_1 + 0x38) + -1;\n          *(int *)(param_1 + 0x38) = iVar5;\n          if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }\n          if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }\n          FUN_00047f90(iVar5,iVar6);\n          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));\n          goto LAB_00048cb0;\n        }" ({ "{") (expression_statement "iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);" (assignment_expression "iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14)" (identifier "iVar4") (= "=") (pointer_expression "**(int **)(*(int *)(param_2 + 0x3c) + 0x14)" (* "*") (pointer_expression "*(int **)(*(int *)(param_2 + 0x3c) + 0x14)" (* "*") (cast_expression "(int **)(*(int *)(param_2 + 0x3c) + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x3c) + 0x14)" (( "(") (binary_expression "*(int *)(param_2 + 0x3c) + 0x14" (pointer_expression "*(int *)(param_2 + 0x3c)" (* "*") (cast_expression "(int *)(param_2 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3c)" (( "(") (binary_expression "param_2 + 0x3c" (identifier "param_2") (+ "+") (number_literal "0x3c")) () ")")))) (+ "+") (number_literal "0x14")) () ")")))))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 0x38) + -1;" (assignment_expression "iVar5 = *(int *)(param_1 + 0x38) + -1" (identifier "iVar5") (= "=") (binary_expression "*(int *)(param_1 + 0x38) + -1" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x38) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x38) = iVar5" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (*(char *)(param_1 + 0x13) == '\0') {\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }\n          else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x13) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x13) == '\0'" (pointer_expression "*(char *)(param_1 + 0x13)" (* "*") (cast_expression "(char *)(param_1 + 0x13)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13)" (( "(") (binary_expression "param_1 + 0x13" (identifier "param_1") (+ "+") (number_literal "0x13")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            iVar6 = *(int *)(param_1 + 0x2c) + 1;\n            *(int *)(param_1 + 0x2c) = iVar6;\n          }" ({ "{") (expression_statement "iVar6 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c) + 1" (identifier "iVar6") (= "=") (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x2c) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar6" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (} "}")) (else_clause "else {\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }" (else "else") (compound_statement "{\n            bVar3 = *(char *)(param_1 + 0x13) - 1;\n            *(byte *)(param_1 + 0x13) = bVar3;\n            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n          }" ({ "{") (expression_statement "bVar3 = *(char *)(param_1 + 0x13) - 1;" (assignment_expression "bVar3 = *(char *)(param_1 + 0x13) - 1" (identifier "bVar3") (= "=") (binary_expression "*(char *)(param_1 + 0x13) - 1" (pointer_expression "*(char *)(param_1 + 0x13)" (* "*") (cast_expression "(char *)(param_1 + 0x13)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13)" (( "(") (binary_expression "param_1 + 0x13" (identifier "param_1") (+ "+") (number_literal "0x13")) () ")")))) (- "-") (number_literal "1"))) (; ";")) (expression_statement "*(byte *)(param_1 + 0x13) = bVar3;" (assignment_expression "*(byte *)(param_1 + 0x13) = bVar3" (pointer_expression "*(byte *)(param_1 + 0x13)" (* "*") (cast_expression "(byte *)(param_1 + 0x13)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13)" (( "(") (binary_expression "param_1 + 0x13" (identifier "param_1") (+ "+") (number_literal "0x13")) () ")")))) (= "=") (identifier "bVar3")) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" (* "*") (cast_expression "(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x90 + (uint)bVar3 * 4)" (( "(") (binary_expression "param_1 + 0x90 + (uint)bVar3 * 4" (binary_expression "param_1 + 0x90" (identifier "param_1") (+ "+") (number_literal "0x90")) (+ "+") (binary_expression "(uint)bVar3 * 4" (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar4 < 3) {\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }\n          else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }" (if "if") (parenthesized_expression "(iVar4 < 3)" (( "(") (binary_expression "iVar4 < 3" (identifier "iVar4") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);\n            FUN_00047f90(iVar6,0);\n            if (iVar4 == 2) goto LAB_00048e7b;\n            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);\n          }" ({ "{") (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0)" (identifier "FUN_00047f90") (argument_list "(*(undefined4 *)(param_2 + 0x2c),0)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_00047f90(iVar6,0);" (call_expression "FUN_00047f90(iVar6,0)" (identifier "FUN_00047f90") (argument_list "(iVar6,0)" (( "(") (identifier "iVar6") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (iVar4 == 2) goto LAB_00048e7b;" (if "if") (parenthesized_expression "(iVar4 == 2)" (( "(") (binary_expression "iVar4 == 2" (identifier "iVar4") (== "==") (number_literal "2")) () ")")) (goto_statement "goto LAB_00048e7b;" (goto "goto") (statement_identifier "LAB_00048e7b") (; ";"))) (expression_statement "FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);" (call_expression "FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0)" (identifier "FUN_00047f90") (argument_list "((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0)" (( "(") (binary_expression "(uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1" (binary_expression "(uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2" (call_expression "(uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8)" (( "(") (binary_expression "*(undefined **)(iVar1 + 0x20) == &DAT_001024d8" (pointer_expression "*(undefined **)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined **)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (pointer_expression "&DAT_001024d8" (& "&") (identifier "DAT_001024d8"))) () ")"))) (* "*") (number_literal "2")) (+ "+") (number_literal "-1")) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")) (else_clause "else {\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }" (else "else") (compound_statement "{\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));\n            FUN_00047f90(iVar6,0);\nLAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }\n            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);\n            FUN_00047f90(iVar6,iVar6);\n            if (local_48 != 0) {\n              FUN_0002de30();\n            }\n          }" ({ "{") (expression_statement "FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c))" (identifier "FUN_00047f90") (argument_list "(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c))" (( "(") (binary_expression "*(int *)(param_2 + 0x44) + 2" (pointer_expression "*(int *)(param_2 + 0x44)" (* "*") (cast_expression "(int *)(param_2 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x44)" (( "(") (binary_expression "param_2 + 0x44" (identifier "param_2") (+ "+") (number_literal "0x44")) () ")")))) (+ "+") (number_literal "2")) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00047f90(iVar6,0);" (call_expression "FUN_00047f90(iVar6,0)" (identifier "FUN_00047f90") (argument_list "(iVar6,0)" (( "(") (identifier "iVar6") (, ",") (number_literal "0") () ")"))) (; ";")) (labeled_statement "LAB_00048e7b:\n            if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" (statement_identifier "LAB_00048e7b") (: ":") (if_statement "if (*(char *)(param_1 + 0x13) == '\0') {\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }\n            else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x13) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x13) == '\0'" (pointer_expression "*(char *)(param_1 + 0x13)" (* "*") (cast_expression "(char *)(param_1 + 0x13)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13)" (( "(") (binary_expression "param_1 + 0x13" (identifier "param_1") (+ "+") (number_literal "0x13")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n              local_48 = *(int *)(param_1 + 0x2c) + 1;\n              *(int *)(param_1 + 0x2c) = local_48;\n            }" ({ "{") (expression_statement "local_48 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "local_48 = *(int *)(param_1 + 0x2c) + 1" (identifier "local_48") (= "=") (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x2c) = local_48;" (assignment_expression "*(int *)(param_1 + 0x2c) = local_48" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "local_48")) (; ";")) (} "}")) (else_clause "else {\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" (else "else") (compound_statement "{\n              bVar3 = *(char *)(param_1 + 0x13) - 1;\n              *(byte *)(param_1 + 0x13) = bVar3;\n              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n            }" ({ "{") (expression_statement "bVar3 = *(char *)(param_1 + 0x13) - 1;" (assignment_expression "bVar3 = *(char *)(param_1 + 0x13) - 1" (identifier "bVar3") (= "=") (binary_expression "*(char *)(param_1 + 0x13) - 1" (pointer_expression "*(char *)(param_1 + 0x13)" (* "*") (cast_expression "(char *)(param_1 + 0x13)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13)" (( "(") (binary_expression "param_1 + 0x13" (identifier "param_1") (+ "+") (number_literal "0x13")) () ")")))) (- "-") (number_literal "1"))) (; ";")) (expression_statement "*(byte *)(param_1 + 0x13) = bVar3;" (assignment_expression "*(byte *)(param_1 + 0x13) = bVar3" (pointer_expression "*(byte *)(param_1 + 0x13)" (* "*") (cast_expression "(byte *)(param_1 + 0x13)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13)" (( "(") (binary_expression "param_1 + 0x13" (identifier "param_1") (+ "+") (number_literal "0x13")) () ")")))) (= "=") (identifier "bVar3")) (; ";")) (expression_statement "local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);" (assignment_expression "local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" (identifier "local_48") (= "=") (pointer_expression "*(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" (* "*") (cast_expression "(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x90 + (uint)bVar3 * 4)" (( "(") (binary_expression "param_1 + 0x90 + (uint)bVar3 * 4" (binary_expression "param_1 + 0x90" (identifier "param_1") (+ "+") (number_literal "0x90")) (+ "+") (binary_expression "(uint)bVar3 * 4" (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}"))))) (expression_statement "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);" (call_expression "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48)" (identifier "FUN_00047f90") (argument_list "(*(int *)(param_2 + 0x44) + 1,local_48)" (( "(") (binary_expression "*(int *)(param_2 + 0x44) + 1" (pointer_expression "*(int *)(param_2 + 0x44)" (* "*") (cast_expression "(int *)(param_2 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x44)" (( "(") (binary_expression "param_2 + 0x44" (identifier "param_2") (+ "+") (number_literal "0x44")) () ")")))) (+ "+") (number_literal "1")) (, ",") (identifier "local_48") () ")"))) (; ";")) (expression_statement "FUN_00047f90(iVar6,iVar6);" (call_expression "FUN_00047f90(iVar6,iVar6)" (identifier "FUN_00047f90") (argument_list "(iVar6,iVar6)" (( "(") (identifier "iVar6") (, ",") (identifier "iVar6") () ")"))) (; ";")) (if_statement "if (local_48 != 0) {\n              FUN_0002de30();\n            }" (if "if") (parenthesized_expression "(local_48 != 0)" (( "(") (binary_expression "local_48 != 0" (identifier "local_48") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              FUN_0002de30();\n            }" ({ "{") (expression_statement "FUN_0002de30();" (call_expression "FUN_0002de30()" (identifier "FUN_0002de30") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_00047f90(iVar5,iVar6);" (call_expression "FUN_00047f90(iVar5,iVar6)" (identifier "FUN_00047f90") (argument_list "(iVar5,iVar6)" (( "(") (identifier "iVar5") (, ",") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" (identifier "FUN_00047f90") (argument_list "(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x44)" (( "(") (binary_expression "param_2 + 0x44" (identifier "param_2") (+ "+") (number_literal "0x44")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) () ")"))) (; ";")) (goto_statement "goto LAB_00048cb0;" (goto "goto") (statement_identifier "LAB_00048cb0") (; ";")) (} "}"))) (labeled_statement "LAB_00048bc2:\n        param_2 = *(int *)(param_2 + 0x18);" (statement_identifier "LAB_00048bc2") (: ":") (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";"))) (if_statement "if (param_2 == 0) goto LAB_00048cd6;" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00048cd6;" (goto "goto") (statement_identifier "LAB_00048cd6") (; ";"))) (} "}"))) (expression_statement "iVar4 = *(int *)(param_1 + 0x38) + -1;" (assignment_expression "iVar4 = *(int *)(param_1 + 0x38) + -1" (identifier "iVar4") (= "=") (binary_expression "*(int *)(param_1 + 0x38) + -1" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x38) = iVar4;" (assignment_expression "*(int *)(param_1 + 0x38) = iVar4" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (*(char *)(param_1 + 0x13) == '\0') {\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }\n      else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x13) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x13) == '\0'" (pointer_expression "*(char *)(param_1 + 0x13)" (* "*") (cast_expression "(char *)(param_1 + 0x13)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13)" (( "(") (binary_expression "param_1 + 0x13" (identifier "param_1") (+ "+") (number_literal "0x13")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar6 = *(int *)(param_1 + 0x2c) + 1;\n        *(int *)(param_1 + 0x2c) = iVar6;\n      }" ({ "{") (expression_statement "iVar6 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "iVar6 = *(int *)(param_1 + 0x2c) + 1" (identifier "iVar6") (= "=") (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x2c) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x2c) = iVar6" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (} "}")) (else_clause "else {\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }" (else "else") (compound_statement "{\n        bVar3 = *(char *)(param_1 + 0x13) - 1;\n        *(byte *)(param_1 + 0x13) = bVar3;\n        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);\n      }" ({ "{") (expression_statement "bVar3 = *(char *)(param_1 + 0x13) - 1;" (assignment_expression "bVar3 = *(char *)(param_1 + 0x13) - 1" (identifier "bVar3") (= "=") (binary_expression "*(char *)(param_1 + 0x13) - 1" (pointer_expression "*(char *)(param_1 + 0x13)" (* "*") (cast_expression "(char *)(param_1 + 0x13)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13)" (( "(") (binary_expression "param_1 + 0x13" (identifier "param_1") (+ "+") (number_literal "0x13")) () ")")))) (- "-") (number_literal "1"))) (; ";")) (expression_statement "*(byte *)(param_1 + 0x13) = bVar3;" (assignment_expression "*(byte *)(param_1 + 0x13) = bVar3" (pointer_expression "*(byte *)(param_1 + 0x13)" (* "*") (cast_expression "(byte *)(param_1 + 0x13)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13)" (( "(") (binary_expression "param_1 + 0x13" (identifier "param_1") (+ "+") (number_literal "0x13")) () ")")))) (= "=") (identifier "bVar3")) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" (* "*") (cast_expression "(int *)(param_1 + 0x90 + (uint)bVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x90 + (uint)bVar3 * 4)" (( "(") (binary_expression "param_1 + 0x90 + (uint)bVar3 * 4" (binary_expression "param_1 + 0x90" (identifier "param_1") (+ "+") (number_literal "0x90")) (+ "+") (binary_expression "(uint)bVar3 * 4" (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")))) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0)" (identifier "FUN_00047f90") (argument_list "(*(undefined4 *)(param_2 + 0x2c),0)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (*(char **)(iVar1 + 0x20) == "nth_value") {\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }\n      else {\n        FUN_00047f90(iVar6,0);\n      }" (if "if") (parenthesized_expression "(*(char **)(iVar1 + 0x20) == "nth_value")" (( "(") (binary_expression "*(char **)(iVar1 + 0x20) == "nth_value"" (pointer_expression "*(char **)(iVar1 + 0x20)" (* "*") (cast_expression "(char **)(iVar1 + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (string_literal ""nth_value"" (" """) (string_content "nth_value") (" """))) () ")")) (compound_statement "{\n        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);\n        FUN_00048880();\n      }" ({ "{") (expression_statement "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);" (call_expression "FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6)" (identifier "FUN_00047f90") (argument_list "(*(int *)(param_2 + 0x44) + 1,iVar6)" (( "(") (binary_expression "*(int *)(param_2 + 0x44) + 1" (pointer_expression "*(int *)(param_2 + 0x44)" (* "*") (cast_expression "(int *)(param_2 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x44)" (( "(") (binary_expression "param_2 + 0x44" (identifier "param_2") (+ "+") (number_literal "0x44")) () ")")))) (+ "+") (number_literal "1")) (, ",") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "FUN_00048880();" (call_expression "FUN_00048880()" (identifier "FUN_00048880") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        FUN_00047f90(iVar6,0);\n      }" (else "else") (compound_statement "{\n        FUN_00047f90(iVar6,0);\n      }" ({ "{") (expression_statement "FUN_00047f90(iVar6,0);" (call_expression "FUN_00047f90(iVar6,0)" (identifier "FUN_00047f90") (argument_list "(iVar6,0)" (( "(") (identifier "iVar6") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6)" (identifier "FUN_00047f90") (argument_list "(*(undefined4 *)(param_2 + 0x34),iVar6)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x34)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x34)" (( "(") (binary_expression "param_2 + 0x34" (identifier "param_2") (+ "+") (number_literal "0x34")) () ")")))) (, ",") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "FUN_00047f90(iVar4,iVar6);" (call_expression "FUN_00047f90(iVar4,iVar6)" (identifier "FUN_00047f90") (argument_list "(iVar4,iVar6)" (( "(") (identifier "iVar4") (, ",") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "FUN_00047f90(0,iVar6);" (call_expression "FUN_00047f90(0,iVar6)" (identifier "FUN_00047f90") (argument_list "(0,iVar6)" (( "(") (number_literal "0") (, ",") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" (identifier "FUN_00047f90") (argument_list "(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x44)" (( "(") (binary_expression "param_2 + 0x44" (identifier "param_2") (+ "+") (number_literal "0x44")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) () ")"))) (; ";")) (labeled_statement "LAB_00048cb0:\n      FUN_00047d60();" (statement_identifier "LAB_00048cb0") (: ":") (expression_statement "FUN_00047d60();" (call_expression "FUN_00047d60()" (identifier "FUN_00047d60") (argument_list "()" (( "(") () ")"))) (; ";"))) (if_statement "if (iVar6 == 0) goto LAB_00048bc2;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00048bc2;" (goto "goto") (statement_identifier "LAB_00048bc2") (; ";"))) (expression_statement "FUN_0002de30();" (call_expression "FUN_0002de30()" (identifier "FUN_0002de30") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_00048cd6:\n  FUN_00047f90(param_3,0);" (statement_identifier "LAB_00048cd6") (: ":") (expression_statement "FUN_00047f90(param_3,0);" (call_expression "FUN_00047f90(param_3,0)" (identifier "FUN_00047f90") (argument_list "(param_3,0)" (( "(") (identifier "param_3") (, ",") (number_literal "0") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 function_1(type_1 *pParse,type_2 *var_3,int regGosub,int addrGosub)

{
  type_3 *pFVar1;
  char *var_4;
  int var_5;
  int p1;
  int p1_00;
  type_4 bVar4;
  type_5 *var_1;
  int p2;
  int var_12;
  type_2 *var_9;
  int var_7;
  
  var_1 = pParse->pVdbe;
  if (var_1 == (type_5 *)0x0) {
    var_1 = var_2(pParse);
  }
  var_9 = var_3;
  if (var_3 != (type_2 *)0x0) {
    do {
      while( true ) {
        pFVar1 = var_9->pFunc;
        var_4 = pFVar1->zName;
        if ((var_4 == "nth_value") || (var_4 == "first_value")) break;
        if ((var_4 == "lead") || (var_4 == "lag")) {
          var_5 = ((var_9->pOwner->x).pList)->nExpr;
          p1 = var_3->iEphCsr;
          p1_00 = var_9->csrApp;
          p2 = pParse->nLabel + -1;
          pParse->nLabel = p2;
          if (pParse->nTempReg == '\0') {
            var_12 = pParse->nMem + 1;
            pParse->nMem = var_12;
          }
          else {
            bVar4 = pParse->nTempReg - 1;
            pParse->nTempReg = bVar4;
            var_12 = pParse->aTempReg[bVar4];
          }
          if (var_5 < 3) {
            var_6(var_1,0x49,0,var_9->regResult,0);
            var_6(var_1,0x80,p1,var_12,0);
            if (var_5 == 2) goto LAB_00048e7b;
            var_6(var_1,0x53,var_12,(uint)(pFVar1->zName == "lead") * 2 + -1,0);
          }
          else {
            var_6(var_1,0x5a,p1,var_9->iArgCol + 2,var_9->regResult);
            var_6(var_1,0x80,p1,var_12,0);
LAB_00048e7b:
            var_4 = pFVar1->zName;
            if (pParse->nTempReg == '\0') {
              var_7 = pParse->nMem + 1;
              pParse->nMem = var_7;
            }
            else {
              bVar4 = pParse->nTempReg - 1;
              pParse->nTempReg = bVar4;
              var_7 = pParse->aTempReg[bVar4];
            }
            var_6(var_1,0x5a,p1,var_9->iArgCol + 1,var_7);
            var_6(var_1,(var_4 != "lead") + 0x60,var_7,var_12,var_12);
            if (var_7 != 0) {
              var_8(pParse,var_7);
            }
          }
          var_6(var_1,0x1e,p1_00,p2,var_12);
          var_6(var_1,0x5a,p1_00,var_9->iArgCol,var_9->regResult);
          goto LAB_00048cb0;
        }
LAB_00048bc2:
        var_9 = var_9->pNextWin;
        if (var_9 == (type_2 *)0x0) goto LAB_00048cd6;
      }
      var_5 = var_9->csrApp;
      p2 = pParse->nLabel + -1;
      pParse->nLabel = p2;
      if (pParse->nTempReg == '\0') {
        var_12 = pParse->nMem + 1;
        pParse->nMem = var_12;
      }
      else {
        bVar4 = pParse->nTempReg - 1;
        pParse->nTempReg = bVar4;
        var_12 = pParse->aTempReg[bVar4];
      }
      var_6(var_1,0x49,0,var_9->regResult,0);
      if (pFVar1->zName == "nth_value") {
        var_6(var_1,0x5a,var_3->iEphCsr,var_9->iArgCol + 1,var_12);
        var_10(pParse,var_12,2);
      }
      else {
        var_6(var_1,0x46,1,var_12,0);
      }
      var_6(var_1,0x60,var_12,var_9->regApp,var_12);
      var_6(var_1,0x36,var_9->regApp + 1,p2,var_12);
      var_6(var_1,0x1e,var_5,0,var_12);
      var_6(var_1,0x5a,var_5,var_9->iArgCol,var_9->regResult);
LAB_00048cb0:
      var_11(var_1,p2);
      if (var_12 == 0) goto LAB_00048bc2;
      var_8(pParse,var_12);
      var_9 = var_9->pNextWin;
    } while (var_9 != (type_2 *)0x0);
  }
LAB_00048cd6:
  var_6(var_1,0xc,regGosub,addrGosub,0);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (string_literal (string_content)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (string_literal (string_content)))))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (string_literal (string_content)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (string_literal (string_content)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (identifier))))) right: (number_literal)) right: (number_literal)) (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (string_literal (string_content)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm2 MASKED(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  char *pcVar2;
  byte bVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int local_48;
  
  if (*(int *)(param_1 + 8) == 0) {
    FUN_000480a0();
  }
  if (param_2 != 0) {
    do {
      while( true ) {
        iVar1 = *(int *)(param_2 + 0x20);
        pcVar2 = *(char **)(iVar1 + 0x20);
        if ((pcVar2 == "nth_value") || (pcVar2 == "first_value")) break;
        if ((pcVar2 == "lead") || (pcVar2 == "lag")) {
          iVar4 = **(int **)(*(int *)(param_2 + 0x3c) + 0x14);
          iVar5 = *(int *)(param_1 + 0x38) + -1;
          *(int *)(param_1 + 0x38) = iVar5;
          if (*(char *)(param_1 + 0x13) == '\0') {
            iVar6 = *(int *)(param_1 + 0x2c) + 1;
            *(int *)(param_1 + 0x2c) = iVar6;
          }
          else {
            bVar3 = *(char *)(param_1 + 0x13) - 1;
            *(byte *)(param_1 + 0x13) = bVar3;
            iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);
          }
          if (iVar4 < 3) {
            FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);
            FUN_00047f90(iVar6,0);
            if (iVar4 == 2) goto LAB_00048e7b;
            FUN_00047f90((uint)(*(undefined **)(iVar1 + 0x20) == &DAT_001024d8) * 2 + -1,0);
          }
          else {
            FUN_00047f90(*(int *)(param_2 + 0x44) + 2,*(undefined4 *)(param_2 + 0x2c));
            FUN_00047f90(iVar6,0);
LAB_00048e7b:
            if (*(char *)(param_1 + 0x13) == '\0') {
              local_48 = *(int *)(param_1 + 0x2c) + 1;
              *(int *)(param_1 + 0x2c) = local_48;
            }
            else {
              bVar3 = *(char *)(param_1 + 0x13) - 1;
              *(byte *)(param_1 + 0x13) = bVar3;
              local_48 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);
            }
            FUN_00047f90(*(int *)(param_2 + 0x44) + 1,local_48);
            FUN_00047f90(iVar6,iVar6);
            if (local_48 != 0) {
              FUN_0002de30();
            }
          }
          FUN_00047f90(iVar5,iVar6);
          FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));
          goto LAB_00048cb0;
        }
LAB_00048bc2:
        param_2 = *(int *)(param_2 + 0x18);
        if (param_2 == 0) goto LAB_00048cd6;
      }
      iVar4 = *(int *)(param_1 + 0x38) + -1;
      *(int *)(param_1 + 0x38) = iVar4;
      if (*(char *)(param_1 + 0x13) == '\0') {
        iVar6 = *(int *)(param_1 + 0x2c) + 1;
        *(int *)(param_1 + 0x2c) = iVar6;
      }
      else {
        bVar3 = *(char *)(param_1 + 0x13) - 1;
        *(byte *)(param_1 + 0x13) = bVar3;
        iVar6 = *(int *)(param_1 + 0x90 + (uint)bVar3 * 4);
      }
      FUN_00047f90(*(undefined4 *)(param_2 + 0x2c),0);
      if (*(char **)(iVar1 + 0x20) == "nth_value") {
        FUN_00047f90(*(int *)(param_2 + 0x44) + 1,iVar6);
        FUN_00048880();
      }
      else {
        FUN_00047f90(iVar6,0);
      }
      FUN_00047f90(*(undefined4 *)(param_2 + 0x34),iVar6);
      FUN_00047f90(iVar4,iVar6);
      FUN_00047f90(0,iVar6);
      FUN_00047f90(*(undefined4 *)(param_2 + 0x44),*(undefined4 *)(param_2 + 0x2c));
LAB_00048cb0:
      FUN_00047d60();
      if (iVar6 == 0) goto LAB_00048bc2;
      FUN_0002de30();
      param_2 = *(int *)(param_2 + 0x18);
    } while (param_2 != 0);
  }
LAB_00048cd6:
  FUN_00047f90(param_3,0);
  return;
}

