
int selectWindowRewriteExprCb(Walker *pWalker,Expr *pExpr)

{
  byte bVar1;
  WindowRewrite *pWVar2;
  SrcList *pSVar3;
  int iVar4;
  int iVar5;
  Table *pTVar6;
  Parse *pPVar7;
  int *piVar8;
  Expr *pExpr_00;
  ExprList *pEVar9;
  uint uVar10;
  int iVar11;
  undefined4 *puVar12;
  byte bVar13;
  
  bVar13 = 0;
  pWVar2 = (pWalker->u).pRewrite;
  bVar1 = pExpr->op;
  if (pWVar2->pSubSelect == (Select *)0x0) {
    if (bVar1 == 0x9d) {
      if ((pExpr->flags & 0x1000000) == 0) {
        return 0;
      }
      pTVar6 = (Table *)pWVar2->pWin;
      if (pTVar6 != (Table *)0x0) {
        do {
          if (pTVar6 == (pExpr->y).pTab) {
            return 1;
          }
          pTVar6 = (Table *)pTVar6->pCheck;
        } while (pTVar6 != (Table *)0x0);
      }
    }
    else {
      if (bVar1 < 0x9d) {
        return 0;
      }
      if (0x9f < bVar1) {
        return 0;
      }
    }
  }
  else {
    if (bVar1 != 0x9e) {
      return 0;
    }
    pSVar3 = pWVar2->pSrc;
    iVar4 = pSVar3->nSrc;
    if (iVar4 < 1) {
      if (iVar4 == 0) {
        return 0;
      }
    }
    else if (pSVar3->a[0].iCursor != pExpr->iTable) {
      iVar11 = 0;
      piVar8 = &pSVar3[1].a[0].regResult;
      do {
        iVar11 = iVar11 + 1;
        if (iVar4 == iVar11) {
          return 0;
        }
        iVar5 = *piVar8;
        piVar8 = piVar8 + 0x11;
      } while (iVar5 != pExpr->iTable);
    }
  }
  pPVar7 = pWalker->pParse;
  pExpr_00 = exprDup(pPVar7->db,pExpr,0,(u8 **)0x0);
  pEVar9 = sqlite3ExprListAppend((Parse *)pPVar7->db,pWVar2->pSub,pExpr_00);
  pWVar2->pSub = pEVar9;
  if (pEVar9 != (ExprList *)0x0) {
    pExpr->flags = pExpr->flags | 0x8000;
    puVar12 = (undefined4 *)((uint)&pExpr->flags & 0xfffffffc);
    sqlite3ExprDeleteNN(pPVar7->db,pExpr);
    pExpr->op = '\0';
    pExpr->affinity = '\0';
    *(undefined2 *)&pExpr->field_0x2 = 0;
    (pExpr->y).sub.regReturn = 0;
    uVar10 = (uint)((int)pExpr + (0x38 - (int)puVar12)) >> 2;
    for (; uVar10 != 0; uVar10 = uVar10 - 1) {
      *puVar12 = 0;
      puVar12 = puVar12 + (uint)bVar13 * -2 + 1;
    }
    pExpr->op = 0x9e;
    pExpr->iColumn = pWVar2->pSub->nExpr + -1;
    pExpr->iTable = pWVar2->pWin->iEphCsr;
  }
  return 0;
}



undefined4 FUN_0004bce0(int param_1,byte *param_2)

{
  byte bVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  undefined4 *puVar8;
  byte bVar9;
  
  bVar9 = 0;
  piVar2 = *(int **)(param_1 + 0x18);
  bVar1 = *param_2;
  if (piVar2[3] == 0) {
    if (bVar1 == 0x9d) {
      if ((param_2[7] & 1) == 0) {
        return 0;
      }
      iVar5 = *piVar2;
      if (iVar5 != 0) {
        do {
          if (iVar5 == *(int *)(param_2 + 0x30)) {
            return 1;
          }
          iVar5 = *(int *)(iVar5 + 0x18);
        } while (iVar5 != 0);
      }
    }
    else {
      if (bVar1 < 0x9d) {
        return 0;
      }
      if (0x9f < bVar1) {
        return 0;
      }
    }
  }
  else {
    if (bVar1 != 0x9e) {
      return 0;
    }
    piVar4 = (int *)piVar2[1];
    iVar5 = *piVar4;
    if (iVar5 < 1) {
      if (iVar5 == 0) {
        return 0;
      }
    }
    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {
      iVar7 = 0;
      piVar4 = piVar4 + 0x1d;
      do {
        iVar7 = iVar7 + 1;
        if (iVar5 == iVar7) {
          return 0;
        }
        iVar3 = *piVar4;
        piVar4 = piVar4 + 0x11;
      } while (iVar3 != *(int *)(param_2 + 0x1c));
    }
  }
  FUN_0003dcd0(0);
  iVar5 = FUN_0004bb50();
  piVar2[2] = iVar5;
  if (iVar5 != 0) {
    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;
    FUN_00039fe0();
    param_2[0] = 0;
    param_2[1] = 0;
    param_2[2] = 0;
    param_2[3] = 0;
    param_2[0x34] = 0;
    param_2[0x35] = 0;
    param_2[0x36] = 0;
    param_2[0x37] = 0;
    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);
    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0
        ; uVar6 = uVar6 - 1) {
      *puVar8 = 0;
      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;
    }
    *param_2 = 0x9e;
    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;
    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV EBX,dword ptr [ESP + 0x24]
MOV ESI,dword ptr [EDI + 0x18]
MOVZX EDX,byte ptr [EBX]
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x0004bd40
CMP DL,0x9e
JNZ 0x0004bd30
MOV EAX,dword ptr [ESI + 0x4]
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JLE 0x0004be14
MOV ECX,dword ptr [EBX + 0x1c]
CMP dword ptr [EAX + 0x30],ECX
JZ 0x0004bd80
ADD EAX,0x74
XOR EBP,EBP
JMP 0x0004bd28
ADD EAX,0x44
CMP dword ptr [EAX + -0x44],ECX
JZ 0x0004bd80
ADD EBP,0x1
CMP EDX,EBP
JNZ 0x0004bd20
NOP
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP DL,0x9d
JNZ 0x0004bdf8
TEST byte ptr [EBX + 0x7],0x1
JZ 0x0004bd30
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x0004bd80
MOV EDX,dword ptr [EBX + 0x30]
CMP EAX,EDX
JNZ 0x0004bd70
JMP 0x0004be20
CMP EAX,EDX
JZ 0x0004be20
MOV EAX,dword ptr [EAX + 0x18]
TEST EAX,EAX
JNZ 0x0004bd68
LEA ESI,[ESI]
NOP
MOV EDI,dword ptr [EDI]
SUB ESP,0xc
XOR ECX,ECX
MOV EDX,EBX
PUSH 0x0
MOV EAX,dword ptr [EDI]
CALL 0x0003dcd0
MOV EDX,dword ptr [ESI + 0x8]
MOV ECX,EAX
MOV EAX,dword ptr [EDI]
CALL 0x0004bb50
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],EAX
TEST EAX,EAX
JZ 0x0004bd30
OR dword ptr [EBX + 0x4],0x8000
MOV EAX,dword ptr [EDI]
MOV EDX,EBX
LEA EDI,[EBX + 0x4]
AND EDI,0xfffffffc
CALL 0x00039fe0
MOV ECX,EBX
XOR EAX,EAX
MOV dword ptr [EBX],0x0
SUB ECX,EDI
MOV dword ptr [EBX + 0x34],0x0
ADD ECX,0x38
SHR ECX,0x2
STOSD.REP ES:EDI
MOV byte ptr [EBX],0x9e
MOV EAX,dword ptr [ESI + 0x8]
MOV EAX,dword ptr [EAX]
SUB EAX,0x1
MOV dword ptr [EBX + 0x20],EAX
MOV EAX,dword ptr [ESI]
MOV EAX,dword ptr [EAX + 0x24]
MOV dword ptr [EBX + 0x1c],EAX
JMP 0x0004bd30
MOV EAX,0x0
JC 0x0004bd32
CMP DL,0x9f
JBE 0x0004bd80
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
JNZ 0x0004bd80
JMP 0x0004bd30
MOV EAX,0x1
JMP 0x0004bd32
(translation_unit "undefined4 FUN_0004bce0(int param_1,byte *param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar2 = *(int **)(param_1 + 0x18);\n  bVar1 = *param_2;\n  if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }\n  FUN_0003dcd0(0);\n  iVar5 = FUN_0004bb50();\n  piVar2[2] = iVar5;\n  if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0004bce0(int param_1,byte *param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar2 = *(int **)(param_1 + 0x18);\n  bVar1 = *param_2;\n  if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }\n  FUN_0003dcd0(0);\n  iVar5 = FUN_0004bb50();\n  piVar2[2] = iVar5;\n  if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0004bce0(int param_1,byte *param_2)" identifier (parameter_list "(int param_1,byte *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar2 = *(int **)(param_1 + 0x18);\n  bVar1 = *param_2;\n  if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }\n  FUN_0003dcd0(0);\n  iVar5 = FUN_0004bb50();\n  piVar2[2] = iVar5;\n  if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x18);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x18)" identifier = (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = *param_2;" (assignment_expression "bVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }" if (parenthesized_expression "(piVar2[3] == 0)" ( (binary_expression "piVar2[3] == 0" (subscript_expression "piVar2[3]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }" { (if_statement "if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(bVar1 == 0x9d)" ( (binary_expression "bVar1 == 0x9d" identifier == number_literal) )) (compound_statement "{\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }" { (if_statement "if ((param_2[7] & 1) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((param_2[7] & 1) == 0)" ( (binary_expression "(param_2[7] & 1) == 0" (parenthesized_expression "(param_2[7] & 1)" ( (binary_expression "param_2[7] & 1" (subscript_expression "param_2[7]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }" { (do_statement "do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);" do (compound_statement "{\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        }" { (if_statement "if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }" if (parenthesized_expression "(iVar5 == *(int *)(param_2 + 0x30))" ( (binary_expression "iVar5 == *(int *)(param_2 + 0x30)" identifier == (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar5 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar5 = *(int *)(iVar5 + 0x18)" identifier = (pointer_expression "*(int *)(iVar5 + 0x18)" * (cast_expression "(int *)(iVar5 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) })) }) (else_clause "else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" else (compound_statement "{\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" { (if_statement "if (bVar1 < 0x9d) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 < 0x9d)" ( (binary_expression "bVar1 < 0x9d" identifier < number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0x9f < bVar1) {\n        return 0;\n      }" if (parenthesized_expression "(0x9f < bVar1)" ( (binary_expression "0x9f < bVar1" number_literal < identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }))) }) (else_clause "else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }" else (compound_statement "{\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }" { (if_statement "if (bVar1 != 0x9e) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 != 0x9e)" ( (binary_expression "bVar1 != 0x9e" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar4 = (int *)piVar2[1];" (assignment_expression "piVar4 = (int *)piVar2[1]" identifier = (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }" { (if_statement "if (iVar5 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" else (if_statement "if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" if (parenthesized_expression "(piVar4[0xc] != *(int *)(param_2 + 0x1c))" ( (binary_expression "piVar4[0xc] != *(int *)(param_2 + 0x1c)" (subscript_expression "piVar4[0xc]" identifier [ number_literal ]) != (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = piVar4 + 0x1d;" (assignment_expression "piVar4 = piVar4 + 0x1d" identifier = (binary_expression "piVar4 + 0x1d" identifier + number_literal)) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == iVar7) {\n          return 0;\n        }" if (parenthesized_expression "(iVar5 == iVar7)" ( (binary_expression "iVar5 == iVar7" identifier == identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar4 = piVar4 + 0x11;" (assignment_expression "piVar4 = piVar4 + 0x11" identifier = (binary_expression "piVar4 + 0x11" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != *(int *)(param_2 + 0x1c))" ( (binary_expression "iVar3 != *(int *)(param_2 + 0x1c)" identifier != (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) )) ;) })))) }))) (expression_statement "FUN_0003dcd0(0);" (call_expression "FUN_0003dcd0(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar5 = FUN_0004bb50();" (assignment_expression "iVar5 = FUN_0004bb50()" identifier = (call_expression "FUN_0004bb50()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar2[2] = iVar5;" (assignment_expression "piVar2[2] = iVar5" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }" { (expression_statement "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;" (assignment_expression "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_2 + 4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "FUN_00039fe0();" (call_expression "FUN_00039fe0()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_2[0] = 0;" (assignment_expression "param_2[0] = 0" (subscript_expression "param_2[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[3] = 0;" (assignment_expression "param_2[3] = 0" (subscript_expression "param_2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[0x34] = 0;" (assignment_expression "param_2[0x34] = 0" (subscript_expression "param_2[0x34]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[0x35] = 0;" (assignment_expression "param_2[0x35] = 0" (subscript_expression "param_2[0x35]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[0x36] = 0;" (assignment_expression "param_2[0x36] = 0" (subscript_expression "param_2[0x36]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[0x37] = 0;" (assignment_expression "param_2[0x37] = 0" (subscript_expression "param_2[0x37]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);" (assignment_expression "puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_2 + 4) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_2 + 4) & 0xfffffffc)" ( (binary_expression "(uint)(param_2 + 4) & 0xfffffffc" (call_expression "(uint)(param_2 + 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" for ( (assignment_expression "uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2" (call_expression "(uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc)))" ( (binary_expression "param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))" identifier + (parenthesized_expression "(0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))" ( (binary_expression "0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(param_2 + 4) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_2 + 4) & 0xfffffffc)" ( (binary_expression "(uint)(param_2 + 4) & 0xfffffffc" (call_expression "(uint)(param_2 + 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar6 != 0" identifier != number_literal) ; (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" { (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "puVar8 = puVar8 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "puVar8 + (uint)bVar9 * -2 + 1" (binary_expression "puVar8 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "*param_2 = 0x9e;" (assignment_expression "*param_2 = 0x9e" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "*(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;" (assignment_expression "*(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1" (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) )))) = (binary_expression "*(int *)piVar2[2] + -1" (pointer_expression "*(int *)piVar2[2]" * (cast_expression "(int *)piVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ]))) + number_literal)) ;) (expression_statement "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24)" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" * (cast_expression "(undefined4 *)(param_2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(*piVar2 + 0x24)" * (cast_expression "(undefined4 *)(*piVar2 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x24)" ( (binary_expression "*piVar2 + 0x24" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int selectWindowRewriteExprCb(Walker *pWalker,Expr *pExpr)\n\n{\n  byte bVar1;\n  WindowRewrite *pWVar2;\n  SrcList *pSVar3;\n  int iVar4;\n  int iVar5;\n  Table *pTVar6;\n  Parse *pPVar7;\n  int *piVar8;\n  Expr *pExpr_00;\n  ExprList *pEVar9;\n  uint uVar10;\n  int iVar11;\n  undefined4 *puVar12;\n  byte bVar13;\n  \n  bVar13 = 0;\n  pWVar2 = (pWalker->u).pRewrite;\n  bVar1 = pExpr->op;\n  if (pWVar2->pSubSelect == (Select *)0x0) {\n    if (bVar1 == 0x9d) {\n      if ((pExpr->flags & 0x1000000) == 0) {\n        return 0;\n      }\n      pTVar6 = (Table *)pWVar2->pWin;\n      if (pTVar6 != (Table *)0x0) {\n        do {\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        } while (pTVar6 != (Table *)0x0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    pSVar3 = pWVar2->pSrc;\n    iVar4 = pSVar3->nSrc;\n    if (iVar4 < 1) {\n      if (iVar4 == 0) {\n        return 0;\n      }\n    }\n    else if (pSVar3->a[0].iCursor != pExpr->iTable) {\n      iVar11 = 0;\n      piVar8 = &pSVar3[1].a[0].regResult;\n      do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);\n    }\n  }\n  pPVar7 = pWalker->pParse;\n  pExpr_00 = exprDup(pPVar7->db,pExpr,0,(u8 **)0x0);\n  pEVar9 = sqlite3ExprListAppend((Parse *)pPVar7->db,pWVar2->pSub,pExpr_00);\n  pWVar2->pSub = pEVar9;\n  if (pEVar9 != (ExprList *)0x0) {\n    pExpr->flags = pExpr->flags | 0x8000;\n    puVar12 = (undefined4 *)((uint)&pExpr->flags & 0xfffffffc);\n    sqlite3ExprDeleteNN(pPVar7->db,pExpr);\n    pExpr->op = '\0';\n    pExpr->affinity = '\0';\n    *(undefined2 *)&pExpr->field_0x2 = 0;\n    (pExpr->y).sub.regReturn = 0;\n    uVar10 = (uint)((int)pExpr + (0x38 - (int)puVar12)) >> 2;\n    for (; uVar10 != 0; uVar10 = uVar10 - 1) {\n      *puVar12 = 0;\n      puVar12 = puVar12 + (uint)bVar13 * -2 + 1;\n    }\n    pExpr->op = 0x9e;\n    pExpr->iColumn = pWVar2->pSub->nExpr + -1;\n    pExpr->iTable = pWVar2->pWin->iEphCsr;\n  }\n  return 0;\n}\n\n" (function_definition "int selectWindowRewriteExprCb(Walker *pWalker,Expr *pExpr)\n\n{\n  byte bVar1;\n  WindowRewrite *pWVar2;\n  SrcList *pSVar3;\n  int iVar4;\n  int iVar5;\n  Table *pTVar6;\n  Parse *pPVar7;\n  int *piVar8;\n  Expr *pExpr_00;\n  ExprList *pEVar9;\n  uint uVar10;\n  int iVar11;\n  undefined4 *puVar12;\n  byte bVar13;\n  \n  bVar13 = 0;\n  pWVar2 = (pWalker->u).pRewrite;\n  bVar1 = pExpr->op;\n  if (pWVar2->pSubSelect == (Select *)0x0) {\n    if (bVar1 == 0x9d) {\n      if ((pExpr->flags & 0x1000000) == 0) {\n        return 0;\n      }\n      pTVar6 = (Table *)pWVar2->pWin;\n      if (pTVar6 != (Table *)0x0) {\n        do {\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        } while (pTVar6 != (Table *)0x0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    pSVar3 = pWVar2->pSrc;\n    iVar4 = pSVar3->nSrc;\n    if (iVar4 < 1) {\n      if (iVar4 == 0) {\n        return 0;\n      }\n    }\n    else if (pSVar3->a[0].iCursor != pExpr->iTable) {\n      iVar11 = 0;\n      piVar8 = &pSVar3[1].a[0].regResult;\n      do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);\n    }\n  }\n  pPVar7 = pWalker->pParse;\n  pExpr_00 = exprDup(pPVar7->db,pExpr,0,(u8 **)0x0);\n  pEVar9 = sqlite3ExprListAppend((Parse *)pPVar7->db,pWVar2->pSub,pExpr_00);\n  pWVar2->pSub = pEVar9;\n  if (pEVar9 != (ExprList *)0x0) {\n    pExpr->flags = pExpr->flags | 0x8000;\n    puVar12 = (undefined4 *)((uint)&pExpr->flags & 0xfffffffc);\n    sqlite3ExprDeleteNN(pPVar7->db,pExpr);\n    pExpr->op = '\0';\n    pExpr->affinity = '\0';\n    *(undefined2 *)&pExpr->field_0x2 = 0;\n    (pExpr->y).sub.regReturn = 0;\n    uVar10 = (uint)((int)pExpr + (0x38 - (int)puVar12)) >> 2;\n    for (; uVar10 != 0; uVar10 = uVar10 - 1) {\n      *puVar12 = 0;\n      puVar12 = puVar12 + (uint)bVar13 * -2 + 1;\n    }\n    pExpr->op = 0x9e;\n    pExpr->iColumn = pWVar2->pSub->nExpr + -1;\n    pExpr->iTable = pWVar2->pWin->iEphCsr;\n  }\n  return 0;\n}" primitive_type (function_declarator "selectWindowRewriteExprCb(Walker *pWalker,Expr *pExpr)" identifier (parameter_list "(Walker *pWalker,Expr *pExpr)" ( (parameter_declaration "Walker *pWalker" type_identifier (pointer_declarator "*pWalker" * identifier)) , (parameter_declaration "Expr *pExpr" type_identifier (pointer_declarator "*pExpr" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  WindowRewrite *pWVar2;\n  SrcList *pSVar3;\n  int iVar4;\n  int iVar5;\n  Table *pTVar6;\n  Parse *pPVar7;\n  int *piVar8;\n  Expr *pExpr_00;\n  ExprList *pEVar9;\n  uint uVar10;\n  int iVar11;\n  undefined4 *puVar12;\n  byte bVar13;\n  \n  bVar13 = 0;\n  pWVar2 = (pWalker->u).pRewrite;\n  bVar1 = pExpr->op;\n  if (pWVar2->pSubSelect == (Select *)0x0) {\n    if (bVar1 == 0x9d) {\n      if ((pExpr->flags & 0x1000000) == 0) {\n        return 0;\n      }\n      pTVar6 = (Table *)pWVar2->pWin;\n      if (pTVar6 != (Table *)0x0) {\n        do {\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        } while (pTVar6 != (Table *)0x0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    pSVar3 = pWVar2->pSrc;\n    iVar4 = pSVar3->nSrc;\n    if (iVar4 < 1) {\n      if (iVar4 == 0) {\n        return 0;\n      }\n    }\n    else if (pSVar3->a[0].iCursor != pExpr->iTable) {\n      iVar11 = 0;\n      piVar8 = &pSVar3[1].a[0].regResult;\n      do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);\n    }\n  }\n  pPVar7 = pWalker->pParse;\n  pExpr_00 = exprDup(pPVar7->db,pExpr,0,(u8 **)0x0);\n  pEVar9 = sqlite3ExprListAppend((Parse *)pPVar7->db,pWVar2->pSub,pExpr_00);\n  pWVar2->pSub = pEVar9;\n  if (pEVar9 != (ExprList *)0x0) {\n    pExpr->flags = pExpr->flags | 0x8000;\n    puVar12 = (undefined4 *)((uint)&pExpr->flags & 0xfffffffc);\n    sqlite3ExprDeleteNN(pPVar7->db,pExpr);\n    pExpr->op = '\0';\n    pExpr->affinity = '\0';\n    *(undefined2 *)&pExpr->field_0x2 = 0;\n    (pExpr->y).sub.regReturn = 0;\n    uVar10 = (uint)((int)pExpr + (0x38 - (int)puVar12)) >> 2;\n    for (; uVar10 != 0; uVar10 = uVar10 - 1) {\n      *puVar12 = 0;\n      puVar12 = puVar12 + (uint)bVar13 * -2 + 1;\n    }\n    pExpr->op = 0x9e;\n    pExpr->iColumn = pWVar2->pSub->nExpr + -1;\n    pExpr->iTable = pWVar2->pWin->iEphCsr;\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "WindowRewrite *pWVar2;" type_identifier (pointer_declarator "*pWVar2" * identifier) ;) (declaration "SrcList *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "Table *pTVar6;" type_identifier (pointer_declarator "*pTVar6" * identifier) ;) (declaration "Parse *pPVar7;" type_identifier (pointer_declarator "*pPVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "Expr *pExpr_00;" type_identifier (pointer_declarator "*pExpr_00" * identifier) ;) (declaration "ExprList *pEVar9;" type_identifier (pointer_declarator "*pEVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined4 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "byte bVar13;" type_identifier identifier ;) (expression_statement "bVar13 = 0;" (assignment_expression "bVar13 = 0" identifier = number_literal) ;) (expression_statement "pWVar2 = (pWalker->u).pRewrite;" (assignment_expression "pWVar2 = (pWalker->u).pRewrite" identifier = (field_expression "(pWalker->u).pRewrite" (parenthesized_expression "(pWalker->u)" ( (field_expression "pWalker->u" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "bVar1 = pExpr->op;" (assignment_expression "bVar1 = pExpr->op" identifier = (field_expression "pExpr->op" identifier -> field_identifier)) ;) (if_statement "if (pWVar2->pSubSelect == (Select *)0x0) {\n    if (bVar1 == 0x9d) {\n      if ((pExpr->flags & 0x1000000) == 0) {\n        return 0;\n      }\n      pTVar6 = (Table *)pWVar2->pWin;\n      if (pTVar6 != (Table *)0x0) {\n        do {\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        } while (pTVar6 != (Table *)0x0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    pSVar3 = pWVar2->pSrc;\n    iVar4 = pSVar3->nSrc;\n    if (iVar4 < 1) {\n      if (iVar4 == 0) {\n        return 0;\n      }\n    }\n    else if (pSVar3->a[0].iCursor != pExpr->iTable) {\n      iVar11 = 0;\n      piVar8 = &pSVar3[1].a[0].regResult;\n      do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);\n    }\n  }" if (parenthesized_expression "(pWVar2->pSubSelect == (Select *)0x0)" ( (binary_expression "pWVar2->pSubSelect == (Select *)0x0" (field_expression "pWVar2->pSubSelect" identifier -> field_identifier) == (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (bVar1 == 0x9d) {\n      if ((pExpr->flags & 0x1000000) == 0) {\n        return 0;\n      }\n      pTVar6 = (Table *)pWVar2->pWin;\n      if (pTVar6 != (Table *)0x0) {\n        do {\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        } while (pTVar6 != (Table *)0x0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }" { (if_statement "if (bVar1 == 0x9d) {\n      if ((pExpr->flags & 0x1000000) == 0) {\n        return 0;\n      }\n      pTVar6 = (Table *)pWVar2->pWin;\n      if (pTVar6 != (Table *)0x0) {\n        do {\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        } while (pTVar6 != (Table *)0x0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(bVar1 == 0x9d)" ( (binary_expression "bVar1 == 0x9d" identifier == number_literal) )) (compound_statement "{\n      if ((pExpr->flags & 0x1000000) == 0) {\n        return 0;\n      }\n      pTVar6 = (Table *)pWVar2->pWin;\n      if (pTVar6 != (Table *)0x0) {\n        do {\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        } while (pTVar6 != (Table *)0x0);\n      }\n    }" { (if_statement "if ((pExpr->flags & 0x1000000) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((pExpr->flags & 0x1000000) == 0)" ( (binary_expression "(pExpr->flags & 0x1000000) == 0" (parenthesized_expression "(pExpr->flags & 0x1000000)" ( (binary_expression "pExpr->flags & 0x1000000" (field_expression "pExpr->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pTVar6 = (Table *)pWVar2->pWin;" (assignment_expression "pTVar6 = (Table *)pWVar2->pWin" identifier = (cast_expression "(Table *)pWVar2->pWin" ( (type_descriptor "Table *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pWVar2->pWin" identifier -> field_identifier))) ;) (if_statement "if (pTVar6 != (Table *)0x0) {\n        do {\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        } while (pTVar6 != (Table *)0x0);\n      }" if (parenthesized_expression "(pTVar6 != (Table *)0x0)" ( (binary_expression "pTVar6 != (Table *)0x0" identifier != (cast_expression "(Table *)0x0" ( (type_descriptor "Table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        } while (pTVar6 != (Table *)0x0);\n      }" { (do_statement "do {\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        } while (pTVar6 != (Table *)0x0);" do (compound_statement "{\n          if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }\n          pTVar6 = (Table *)pTVar6->pCheck;\n        }" { (if_statement "if (pTVar6 == (pExpr->y).pTab) {\n            return 1;\n          }" if (parenthesized_expression "(pTVar6 == (pExpr->y).pTab)" ( (binary_expression "pTVar6 == (pExpr->y).pTab" identifier == (field_expression "(pExpr->y).pTab" (parenthesized_expression "(pExpr->y)" ( (field_expression "pExpr->y" identifier -> field_identifier) )) . field_identifier)) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "pTVar6 = (Table *)pTVar6->pCheck;" (assignment_expression "pTVar6 = (Table *)pTVar6->pCheck" identifier = (cast_expression "(Table *)pTVar6->pCheck" ( (type_descriptor "Table *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pTVar6->pCheck" identifier -> field_identifier))) ;) }) while (parenthesized_expression "(pTVar6 != (Table *)0x0)" ( (binary_expression "pTVar6 != (Table *)0x0" identifier != (cast_expression "(Table *)0x0" ( (type_descriptor "Table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) }) (else_clause "else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" else (compound_statement "{\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" { (if_statement "if (bVar1 < 0x9d) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 < 0x9d)" ( (binary_expression "bVar1 < 0x9d" identifier < number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0x9f < bVar1) {\n        return 0;\n      }" if (parenthesized_expression "(0x9f < bVar1)" ( (binary_expression "0x9f < bVar1" number_literal < identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }))) }) (else_clause "else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    pSVar3 = pWVar2->pSrc;\n    iVar4 = pSVar3->nSrc;\n    if (iVar4 < 1) {\n      if (iVar4 == 0) {\n        return 0;\n      }\n    }\n    else if (pSVar3->a[0].iCursor != pExpr->iTable) {\n      iVar11 = 0;\n      piVar8 = &pSVar3[1].a[0].regResult;\n      do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);\n    }\n  }" else (compound_statement "{\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    pSVar3 = pWVar2->pSrc;\n    iVar4 = pSVar3->nSrc;\n    if (iVar4 < 1) {\n      if (iVar4 == 0) {\n        return 0;\n      }\n    }\n    else if (pSVar3->a[0].iCursor != pExpr->iTable) {\n      iVar11 = 0;\n      piVar8 = &pSVar3[1].a[0].regResult;\n      do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);\n    }\n  }" { (if_statement "if (bVar1 != 0x9e) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 != 0x9e)" ( (binary_expression "bVar1 != 0x9e" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pSVar3 = pWVar2->pSrc;" (assignment_expression "pSVar3 = pWVar2->pSrc" identifier = (field_expression "pWVar2->pSrc" identifier -> field_identifier)) ;) (expression_statement "iVar4 = pSVar3->nSrc;" (assignment_expression "iVar4 = pSVar3->nSrc" identifier = (field_expression "pSVar3->nSrc" identifier -> field_identifier)) ;) (if_statement "if (iVar4 < 1) {\n      if (iVar4 == 0) {\n        return 0;\n      }\n    }\n    else if (pSVar3->a[0].iCursor != pExpr->iTable) {\n      iVar11 = 0;\n      piVar8 = &pSVar3[1].a[0].regResult;\n      do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);\n    }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\n      if (iVar4 == 0) {\n        return 0;\n      }\n    }" { (if_statement "if (iVar4 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (pSVar3->a[0].iCursor != pExpr->iTable) {\n      iVar11 = 0;\n      piVar8 = &pSVar3[1].a[0].regResult;\n      do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);\n    }" else (if_statement "if (pSVar3->a[0].iCursor != pExpr->iTable) {\n      iVar11 = 0;\n      piVar8 = &pSVar3[1].a[0].regResult;\n      do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);\n    }" if (parenthesized_expression "(pSVar3->a[0].iCursor != pExpr->iTable)" ( (binary_expression "pSVar3->a[0].iCursor != pExpr->iTable" (field_expression "pSVar3->a[0].iCursor" (subscript_expression "pSVar3->a[0]" (field_expression "pSVar3->a" identifier -> field_identifier) [ number_literal ]) . field_identifier) != (field_expression "pExpr->iTable" identifier -> field_identifier)) )) (compound_statement "{\n      iVar11 = 0;\n      piVar8 = &pSVar3[1].a[0].regResult;\n      do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);\n    }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "piVar8 = &pSVar3[1].a[0].regResult;" (assignment_expression "piVar8 = &pSVar3[1].a[0].regResult" identifier = (pointer_expression "&pSVar3[1].a[0].regResult" & (field_expression "pSVar3[1].a[0].regResult" (subscript_expression "pSVar3[1].a[0]" (field_expression "pSVar3[1].a" (subscript_expression "pSVar3[1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier))) ;) (do_statement "do {\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      } while (iVar5 != pExpr->iTable);" do (compound_statement "{\n        iVar11 = iVar11 + 1;\n        if (iVar4 == iVar11) {\n          return 0;\n        }\n        iVar5 = *piVar8;\n        piVar8 = piVar8 + 0x11;\n      }" { (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == iVar11) {\n          return 0;\n        }" if (parenthesized_expression "(iVar4 == iVar11)" ( (binary_expression "iVar4 == iVar11" identifier == identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = *piVar8;" (assignment_expression "iVar5 = *piVar8" identifier = (pointer_expression "*piVar8" * identifier)) ;) (expression_statement "piVar8 = piVar8 + 0x11;" (assignment_expression "piVar8 = piVar8 + 0x11" identifier = (binary_expression "piVar8 + 0x11" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != pExpr->iTable)" ( (binary_expression "iVar5 != pExpr->iTable" identifier != (field_expression "pExpr->iTable" identifier -> field_identifier)) )) ;) })))) }))) (expression_statement "pPVar7 = pWalker->pParse;" (assignment_expression "pPVar7 = pWalker->pParse" identifier = (field_expression "pWalker->pParse" identifier -> field_identifier)) ;) (expression_statement "pExpr_00 = exprDup(pPVar7->db,pExpr,0,(u8 **)0x0);" (assignment_expression "pExpr_00 = exprDup(pPVar7->db,pExpr,0,(u8 **)0x0)" identifier = (call_expression "exprDup(pPVar7->db,pExpr,0,(u8 **)0x0)" identifier (argument_list "(pPVar7->db,pExpr,0,(u8 **)0x0)" ( (field_expression "pPVar7->db" identifier -> field_identifier) , identifier , number_literal , (cast_expression "(u8 **)0x0" ( (type_descriptor "u8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (expression_statement "pEVar9 = sqlite3ExprListAppend((Parse *)pPVar7->db,pWVar2->pSub,pExpr_00);" (assignment_expression "pEVar9 = sqlite3ExprListAppend((Parse *)pPVar7->db,pWVar2->pSub,pExpr_00)" identifier = (call_expression "sqlite3ExprListAppend((Parse *)pPVar7->db,pWVar2->pSub,pExpr_00)" identifier (argument_list "((Parse *)pPVar7->db,pWVar2->pSub,pExpr_00)" ( (cast_expression "(Parse *)pPVar7->db" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pPVar7->db" identifier -> field_identifier)) , (field_expression "pWVar2->pSub" identifier -> field_identifier) , identifier )))) ;) (expression_statement "pWVar2->pSub = pEVar9;" (assignment_expression "pWVar2->pSub = pEVar9" (field_expression "pWVar2->pSub" identifier -> field_identifier) = identifier) ;) (if_statement "if (pEVar9 != (ExprList *)0x0) {\n    pExpr->flags = pExpr->flags | 0x8000;\n    puVar12 = (undefined4 *)((uint)&pExpr->flags & 0xfffffffc);\n    sqlite3ExprDeleteNN(pPVar7->db,pExpr);\n    pExpr->op = '\0';\n    pExpr->affinity = '\0';\n    *(undefined2 *)&pExpr->field_0x2 = 0;\n    (pExpr->y).sub.regReturn = 0;\n    uVar10 = (uint)((int)pExpr + (0x38 - (int)puVar12)) >> 2;\n    for (; uVar10 != 0; uVar10 = uVar10 - 1) {\n      *puVar12 = 0;\n      puVar12 = puVar12 + (uint)bVar13 * -2 + 1;\n    }\n    pExpr->op = 0x9e;\n    pExpr->iColumn = pWVar2->pSub->nExpr + -1;\n    pExpr->iTable = pWVar2->pWin->iEphCsr;\n  }" if (parenthesized_expression "(pEVar9 != (ExprList *)0x0)" ( (binary_expression "pEVar9 != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pExpr->flags = pExpr->flags | 0x8000;\n    puVar12 = (undefined4 *)((uint)&pExpr->flags & 0xfffffffc);\n    sqlite3ExprDeleteNN(pPVar7->db,pExpr);\n    pExpr->op = '\0';\n    pExpr->affinity = '\0';\n    *(undefined2 *)&pExpr->field_0x2 = 0;\n    (pExpr->y).sub.regReturn = 0;\n    uVar10 = (uint)((int)pExpr + (0x38 - (int)puVar12)) >> 2;\n    for (; uVar10 != 0; uVar10 = uVar10 - 1) {\n      *puVar12 = 0;\n      puVar12 = puVar12 + (uint)bVar13 * -2 + 1;\n    }\n    pExpr->op = 0x9e;\n    pExpr->iColumn = pWVar2->pSub->nExpr + -1;\n    pExpr->iTable = pWVar2->pWin->iEphCsr;\n  }" { (expression_statement "pExpr->flags = pExpr->flags | 0x8000;" (assignment_expression "pExpr->flags = pExpr->flags | 0x8000" (field_expression "pExpr->flags" identifier -> field_identifier) = (binary_expression "pExpr->flags | 0x8000" (field_expression "pExpr->flags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "puVar12 = (undefined4 *)((uint)&pExpr->flags & 0xfffffffc);" (assignment_expression "puVar12 = (undefined4 *)((uint)&pExpr->flags & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)&pExpr->flags & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)&pExpr->flags & 0xfffffffc)" ( (binary_expression "(uint)&pExpr->flags & 0xfffffffc" (binary_expression "(uint)&pExpr->flags" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "pExpr->flags" identifier -> field_identifier)) & number_literal) )))) ;) (expression_statement "sqlite3ExprDeleteNN(pPVar7->db,pExpr);" (call_expression "sqlite3ExprDeleteNN(pPVar7->db,pExpr)" identifier (argument_list "(pPVar7->db,pExpr)" ( (field_expression "pPVar7->db" identifier -> field_identifier) , identifier ))) ;) (expression_statement "pExpr->op = '\0';" (assignment_expression "pExpr->op = '\0'" (field_expression "pExpr->op" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pExpr->affinity = '\0';" (assignment_expression "pExpr->affinity = '\0'" (field_expression "pExpr->affinity" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(undefined2 *)&pExpr->field_0x2 = 0;" (assignment_expression "*(undefined2 *)&pExpr->field_0x2 = 0" (pointer_expression "*(undefined2 *)&pExpr->field_0x2" * (cast_expression "(undefined2 *)&pExpr->field_0x2" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pExpr->field_0x2" & (field_expression "pExpr->field_0x2" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "(pExpr->y).sub.regReturn = 0;" (assignment_expression "(pExpr->y).sub.regReturn = 0" (field_expression "(pExpr->y).sub.regReturn" (field_expression "(pExpr->y).sub" (parenthesized_expression "(pExpr->y)" ( (field_expression "pExpr->y" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "uVar10 = (uint)((int)pExpr + (0x38 - (int)puVar12)) >> 2;" (assignment_expression "uVar10 = (uint)((int)pExpr + (0x38 - (int)puVar12)) >> 2" identifier = (binary_expression "(uint)((int)pExpr + (0x38 - (int)puVar12)) >> 2" (call_expression "(uint)((int)pExpr + (0x38 - (int)puVar12))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pExpr + (0x38 - (int)puVar12))" ( (binary_expression "(int)pExpr + (0x38 - (int)puVar12)" (cast_expression "(int)pExpr" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x38 - (int)puVar12)" ( (binary_expression "0x38 - (int)puVar12" number_literal - (cast_expression "(int)puVar12" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar10 != 0; uVar10 = uVar10 - 1) {\n      *puVar12 = 0;\n      puVar12 = puVar12 + (uint)bVar13 * -2 + 1;\n    }" for ( ; (binary_expression "uVar10 != 0" identifier != number_literal) ; (assignment_expression "uVar10 = uVar10 - 1" identifier = (binary_expression "uVar10 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar12 = 0;\n      puVar12 = puVar12 + (uint)bVar13 * -2 + 1;\n    }" { (expression_statement "*puVar12 = 0;" (assignment_expression "*puVar12 = 0" (pointer_expression "*puVar12" * identifier) = number_literal) ;) (expression_statement "puVar12 = puVar12 + (uint)bVar13 * -2 + 1;" (assignment_expression "puVar12 = puVar12 + (uint)bVar13 * -2 + 1" identifier = (binary_expression "puVar12 + (uint)bVar13 * -2 + 1" (binary_expression "puVar12 + (uint)bVar13 * -2" identifier + (binary_expression "(uint)bVar13 * -2" (cast_expression "(uint)bVar13" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "pExpr->op = 0x9e;" (assignment_expression "pExpr->op = 0x9e" (field_expression "pExpr->op" identifier -> field_identifier) = number_literal) ;) (expression_statement "pExpr->iColumn = pWVar2->pSub->nExpr + -1;" (assignment_expression "pExpr->iColumn = pWVar2->pSub->nExpr + -1" (field_expression "pExpr->iColumn" identifier -> field_identifier) = (binary_expression "pWVar2->pSub->nExpr + -1" (field_expression "pWVar2->pSub->nExpr" (field_expression "pWVar2->pSub" identifier -> field_identifier) -> field_identifier) + number_literal)) ;) (expression_statement "pExpr->iTable = pWVar2->pWin->iEphCsr;" (assignment_expression "pExpr->iTable = pWVar2->pWin->iEphCsr" (field_expression "pExpr->iTable" identifier -> field_identifier) = (field_expression "pWVar2->pWin->iEphCsr" (field_expression "pWVar2->pWin" identifier -> field_identifier) -> field_identifier)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0004bce0(int param_1,byte *param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar2 = *(int **)(param_1 + 0x18);\n  bVar1 = *param_2;\n  if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }\n  FUN_0003dcd0(0);\n  iVar5 = FUN_0004bb50();\n  piVar2[2] = iVar5;\n  if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0004bce0(int param_1,byte *param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar2 = *(int **)(param_1 + 0x18);\n  bVar1 = *param_2;\n  if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }\n  FUN_0003dcd0(0);\n  iVar5 = FUN_0004bb50();\n  piVar2[2] = iVar5;\n  if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0004bce0(int param_1,byte *param_2)" identifier (parameter_list "(int param_1,byte *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar2 = *(int **)(param_1 + 0x18);\n  bVar1 = *param_2;\n  if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }\n  FUN_0003dcd0(0);\n  iVar5 = FUN_0004bb50();\n  piVar2[2] = iVar5;\n  if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "byte bVar9;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x18);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x18)" identifier = (pointer_expression "*(int **)(param_1 + 0x18)" * (cast_expression "(int **)(param_1 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = *param_2;" (assignment_expression "bVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }" if (parenthesized_expression "(piVar2[3] == 0)" ( (binary_expression "piVar2[3] == 0" (subscript_expression "piVar2[3]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }" { (if_statement "if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(bVar1 == 0x9d)" ( (binary_expression "bVar1 == 0x9d" identifier == number_literal) )) (compound_statement "{\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }" { (if_statement "if ((param_2[7] & 1) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((param_2[7] & 1) == 0)" ( (binary_expression "(param_2[7] & 1) == 0" (parenthesized_expression "(param_2[7] & 1)" ( (binary_expression "param_2[7] & 1" (subscript_expression "param_2[7]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }" { (do_statement "do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);" do (compound_statement "{\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        }" { (if_statement "if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }" if (parenthesized_expression "(iVar5 == *(int *)(param_2 + 0x30))" ( (binary_expression "iVar5 == *(int *)(param_2 + 0x30)" identifier == (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar5 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar5 = *(int *)(iVar5 + 0x18)" identifier = (pointer_expression "*(int *)(iVar5 + 0x18)" * (cast_expression "(int *)(iVar5 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) })) }) (else_clause "else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" else (compound_statement "{\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" { (if_statement "if (bVar1 < 0x9d) {\n        return 0;\n      }" if (parenthesized_expression "(bVar1 < 0x9d)" ( (binary_expression "bVar1 < 0x9d" identifier < number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0x9f < bVar1) {\n        return 0;\n      }" if (parenthesized_expression "(0x9f < bVar1)" ( (binary_expression "0x9f < bVar1" number_literal < identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }))) }) (else_clause "else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }" else (compound_statement "{\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }" { (if_statement "if (bVar1 != 0x9e) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 != 0x9e)" ( (binary_expression "bVar1 != 0x9e" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar4 = (int *)piVar2[1];" (assignment_expression "piVar4 = (int *)piVar2[1]" identifier = (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }" { (if_statement "if (iVar5 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" else (if_statement "if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" if (parenthesized_expression "(piVar4[0xc] != *(int *)(param_2 + 0x1c))" ( (binary_expression "piVar4[0xc] != *(int *)(param_2 + 0x1c)" (subscript_expression "piVar4[0xc]" identifier [ number_literal ]) != (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = piVar4 + 0x1d;" (assignment_expression "piVar4 = piVar4 + 0x1d" identifier = (binary_expression "piVar4 + 0x1d" identifier + number_literal)) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == iVar7) {\n          return 0;\n        }" if (parenthesized_expression "(iVar5 == iVar7)" ( (binary_expression "iVar5 == iVar7" identifier == identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar4 = piVar4 + 0x11;" (assignment_expression "piVar4 = piVar4 + 0x11" identifier = (binary_expression "piVar4 + 0x11" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != *(int *)(param_2 + 0x1c))" ( (binary_expression "iVar3 != *(int *)(param_2 + 0x1c)" identifier != (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) )) ;) })))) }))) (expression_statement "FUN_0003dcd0(0);" (call_expression "FUN_0003dcd0(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar5 = FUN_0004bb50();" (assignment_expression "iVar5 = FUN_0004bb50()" identifier = (call_expression "FUN_0004bb50()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar2[2] = iVar5;" (assignment_expression "piVar2[2] = iVar5" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }" { (expression_statement "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;" (assignment_expression "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_2 + 4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "FUN_00039fe0();" (call_expression "FUN_00039fe0()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_2[0] = 0;" (assignment_expression "param_2[0] = 0" (subscript_expression "param_2[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[3] = 0;" (assignment_expression "param_2[3] = 0" (subscript_expression "param_2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[0x34] = 0;" (assignment_expression "param_2[0x34] = 0" (subscript_expression "param_2[0x34]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[0x35] = 0;" (assignment_expression "param_2[0x35] = 0" (subscript_expression "param_2[0x35]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[0x36] = 0;" (assignment_expression "param_2[0x36] = 0" (subscript_expression "param_2[0x36]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[0x37] = 0;" (assignment_expression "param_2[0x37] = 0" (subscript_expression "param_2[0x37]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);" (assignment_expression "puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_2 + 4) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_2 + 4) & 0xfffffffc)" ( (binary_expression "(uint)(param_2 + 4) & 0xfffffffc" (call_expression "(uint)(param_2 + 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" for ( (assignment_expression "uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2" (call_expression "(uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc)))" ( (binary_expression "param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))" identifier + (parenthesized_expression "(0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))" ( (binary_expression "0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(param_2 + 4) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_2 + 4) & 0xfffffffc)" ( (binary_expression "(uint)(param_2 + 4) & 0xfffffffc" (call_expression "(uint)(param_2 + 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar6 != 0" identifier != number_literal) ; (assignment_expression "uVar6 = uVar6 - 1" identifier = (binary_expression "uVar6 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" { (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "puVar8 = puVar8 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "puVar8 + (uint)bVar9 * -2 + 1" (binary_expression "puVar8 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "*param_2 = 0x9e;" (assignment_expression "*param_2 = 0x9e" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "*(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;" (assignment_expression "*(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1" (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) )))) = (binary_expression "*(int *)piVar2[2] + -1" (pointer_expression "*(int *)piVar2[2]" * (cast_expression "(int *)piVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[2]" identifier [ number_literal ]))) + number_literal)) ;) (expression_statement "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24)" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" * (cast_expression "(undefined4 *)(param_2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(*piVar2 + 0x24)" * (cast_expression "(undefined4 *)(*piVar2 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x24)" ( (binary_expression "*piVar2 + 0x24" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_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) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return LIT ;) })) (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) )) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })))) }))) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0004bce0(int param_1,byte *param_2)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar2 = *(int **)(param_1 + 0x18);\n  bVar1 = *param_2;\n  if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }\n  FUN_0003dcd0(0);\n  iVar5 = FUN_0004bb50();\n  piVar2[2] = iVar5;\n  if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004bce0(int param_1,byte *param_2)" (identifier "FUN_0004bce0") (parameter_list "(int param_1,byte *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  \n  bVar9 = 0;\n  piVar2 = *(int **)(param_1 + 0x18);\n  bVar1 = *param_2;\n  if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }\n  FUN_0003dcd0(0);\n  iVar5 = FUN_0004bb50();\n  piVar2[2] = iVar5;\n  if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }\n  return 0;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2 = *(int **)(param_1 + 0x18);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x18)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x18)" (* "*") (cast_expression "(int **)(param_1 + 0x18)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "bVar1 = *param_2;" (assignment_expression "bVar1 = *param_2" (identifier "bVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (piVar2[3] == 0) {\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }\n  else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }" (if "if") (parenthesized_expression "(piVar2[3] == 0)" (( "(") (binary_expression "piVar2[3] == 0" (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }\n  }" ({ "{") (if_statement "if (bVar1 == 0x9d) {\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }\n    else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" (if "if") (parenthesized_expression "(bVar1 == 0x9d)" (( "(") (binary_expression "bVar1 == 0x9d" (identifier "bVar1") (== "==") (number_literal "0x9d")) () ")")) (compound_statement "{\n      if ((param_2[7] & 1) == 0) {\n        return 0;\n      }\n      iVar5 = *piVar2;\n      if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }\n    }" ({ "{") (if_statement "if ((param_2[7] & 1) == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((param_2[7] & 1) == 0)" (( "(") (binary_expression "(param_2[7] & 1) == 0" (parenthesized_expression "(param_2[7] & 1)" (( "(") (binary_expression "param_2[7] & 1" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" (identifier "iVar5") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (if_statement "if (iVar5 != 0) {\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);\n      }" ({ "{") (do_statement "do {\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        } while (iVar5 != 0);" (do "do") (compound_statement "{\n          if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }\n          iVar5 = *(int *)(iVar5 + 0x18);\n        }" ({ "{") (if_statement "if (iVar5 == *(int *)(param_2 + 0x30)) {\n            return 1;\n          }" (if "if") (parenthesized_expression "(iVar5 == *(int *)(param_2 + 0x30))" (( "(") (binary_expression "iVar5 == *(int *)(param_2 + 0x30)" (identifier "iVar5") (== "==") (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (compound_statement "{\n            return 1;\n          }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar5 = *(int *)(iVar5 + 0x18);" (assignment_expression "iVar5 = *(int *)(iVar5 + 0x18)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar5 + 0x18)" (* "*") (cast_expression "(int *)(iVar5 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" (else "else") (compound_statement "{\n      if (bVar1 < 0x9d) {\n        return 0;\n      }\n      if (0x9f < bVar1) {\n        return 0;\n      }\n    }" ({ "{") (if_statement "if (bVar1 < 0x9d) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(bVar1 < 0x9d)" (( "(") (binary_expression "bVar1 < 0x9d" (identifier "bVar1") (< "<") (number_literal "0x9d")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (0x9f < bVar1) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(0x9f < bVar1)" (( "(") (binary_expression "0x9f < bVar1" (number_literal "0x9f") (< "<") (identifier "bVar1")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }" (else "else") (compound_statement "{\n    if (bVar1 != 0x9e) {\n      return 0;\n    }\n    piVar4 = (int *)piVar2[1];\n    iVar5 = *piVar4;\n    if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }\n  }" ({ "{") (if_statement "if (bVar1 != 0x9e) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(bVar1 != 0x9e)" (( "(") (binary_expression "bVar1 != 0x9e" (identifier "bVar1") (!= "!=") (number_literal "0x9e")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)piVar2[1];" (assignment_expression "piVar4 = (int *)piVar2[1]" (identifier "piVar4") (= "=") (cast_expression "(int *)piVar2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" (identifier "iVar5") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (if_statement "if (iVar5 < 1) {\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }\n    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" (if "if") (parenthesized_expression "(iVar5 < 1)" (( "(") (binary_expression "iVar5 < 1" (identifier "iVar5") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      if (iVar5 == 0) {\n        return 0;\n      }\n    }" ({ "{") (if_statement "if (iVar5 == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" (else "else") (if_statement "if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" (if "if") (parenthesized_expression "(piVar4[0xc] != *(int *)(param_2 + 0x1c))" (( "(") (binary_expression "piVar4[0xc] != *(int *)(param_2 + 0x1c)" (subscript_expression "piVar4[0xc]" (identifier "piVar4") ([ "[") (number_literal "0xc") (] "]")) (!= "!=") (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (compound_statement "{\n      iVar7 = 0;\n      piVar4 = piVar4 + 0x1d;\n      do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));\n    }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4 = piVar4 + 0x1d;" (assignment_expression "piVar4 = piVar4 + 0x1d" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 0x1d" (identifier "piVar4") (+ "+") (number_literal "0x1d"))) (; ";")) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      } while (iVar3 != *(int *)(param_2 + 0x1c));" (do "do") (compound_statement "{\n        iVar7 = iVar7 + 1;\n        if (iVar5 == iVar7) {\n          return 0;\n        }\n        iVar3 = *piVar4;\n        piVar4 = piVar4 + 0x11;\n      }" ({ "{") (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar5 == iVar7) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(iVar5 == iVar7)" (( "(") (binary_expression "iVar5 == iVar7" (identifier "iVar5") (== "==") (identifier "iVar7")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" (identifier "iVar3") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "piVar4 = piVar4 + 0x11;" (assignment_expression "piVar4 = piVar4 + 0x11" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 0x11" (identifier "piVar4") (+ "+") (number_literal "0x11"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != *(int *)(param_2 + 0x1c))" (( "(") (binary_expression "iVar3 != *(int *)(param_2 + 0x1c)" (identifier "iVar3") (!= "!=") (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (; ";")) (} "}"))))) (} "}")))) (expression_statement "FUN_0003dcd0(0);" (call_expression "FUN_0003dcd0(0)" (identifier "FUN_0003dcd0") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar5 = FUN_0004bb50();" (assignment_expression "iVar5 = FUN_0004bb50()" (identifier "iVar5") (= "=") (call_expression "FUN_0004bb50()" (identifier "FUN_0004bb50") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar2[2] = iVar5;" (assignment_expression "piVar2[2] = iVar5" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (iVar5 != 0) {\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;\n    FUN_00039fe0();\n    param_2[0] = 0;\n    param_2[1] = 0;\n    param_2[2] = 0;\n    param_2[3] = 0;\n    param_2[0x34] = 0;\n    param_2[0x35] = 0;\n    param_2[0x36] = 0;\n    param_2[0x37] = 0;\n    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);\n    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    *param_2 = 0x9e;\n    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;\n    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);\n  }" ({ "{") (expression_statement "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;" (assignment_expression "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(uint *)(param_2 + 4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (| "|") (number_literal "0x8000"))) (; ";")) (expression_statement "FUN_00039fe0();" (call_expression "FUN_00039fe0()" (identifier "FUN_00039fe0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_2[0] = 0;" (assignment_expression "param_2[0] = 0" (subscript_expression "param_2[0]" (identifier "param_2") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[3] = 0;" (assignment_expression "param_2[3] = 0" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[0x34] = 0;" (assignment_expression "param_2[0x34] = 0" (subscript_expression "param_2[0x34]" (identifier "param_2") ([ "[") (number_literal "0x34") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[0x35] = 0;" (assignment_expression "param_2[0x35] = 0" (subscript_expression "param_2[0x35]" (identifier "param_2") ([ "[") (number_literal "0x35") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[0x36] = 0;" (assignment_expression "param_2[0x36] = 0" (subscript_expression "param_2[0x36]" (identifier "param_2") ([ "[") (number_literal "0x36") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[0x37] = 0;" (assignment_expression "param_2[0x37] = 0" (subscript_expression "param_2[0x37]" (identifier "param_2") ([ "[") (number_literal "0x37") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);" (assignment_expression "puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc)" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)((uint)(param_2 + 4) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(param_2 + 4) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_2 + 4) & 0xfffffffc" (call_expression "(uint)(param_2 + 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0\n        ; uVar6 = uVar6 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" (for "for") (( "(") (assignment_expression "uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2" (identifier "uVar6") (= "=") (binary_expression "(uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2" (call_expression "(uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc)))" (( "(") (binary_expression "param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))" (identifier "param_2") (+ "+") (parenthesized_expression "(0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))" (( "(") (binary_expression "0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc)" (number_literal "0x38") (- "-") (cast_expression "(int)((uint)(param_2 + 4) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(param_2 + 4) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_2 + 4) & 0xfffffffc" (call_expression "(uint)(param_2 + 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar6 = uVar6 - 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      *puVar8 = 0;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" ({ "{") (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar8 = puVar8 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (uint)bVar9 * -2 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar8 + (uint)bVar9 * -2 + 1" (binary_expression "puVar8 + (uint)bVar9 * -2" (identifier "puVar8") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*param_2 = 0x9e;" (assignment_expression "*param_2 = 0x9e" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0x9e")) (; ";")) (expression_statement "*(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;" (assignment_expression "*(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1" (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")) () ")")))) (= "=") (binary_expression "*(int *)piVar2[2] + -1" (pointer_expression "*(int *)piVar2[2]" (* "*") (cast_expression "(int *)piVar2[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24)" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(*piVar2 + 0x24)" (* "*") (cast_expression "(undefined4 *)(*piVar2 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 0x24)" (( "(") (binary_expression "*piVar2 + 0x24" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *pWalker,type_2 *pExpr)

{
  type_3 var_1;
  type_4 *pWVar2;
  type_5 *pSVar3;
  int var_3;
  int var_6;
  type_6 *var_2;
  type_7 *pPVar7;
  int *var_5;
  type_2 *pExpr_00;
  type_8 *var_9;
  type_9 var_11;
  int var_4;
  type_10 *var_12;
  type_3 bVar13;
  
  bVar13 = 0;
  pWVar2 = (pWalker->u).pRewrite;
  var_1 = pExpr->op;
  if (pWVar2->pSubSelect == (type_11 *)0x0) {
    if (var_1 == 0x9d) {
      if ((pExpr->flags & 0x1000000) == 0) {
        return 0;
      }
      var_2 = (type_6 *)pWVar2->pWin;
      if (var_2 != (type_6 *)0x0) {
        do {
          if (var_2 == (pExpr->y).pTab) {
            return 1;
          }
          var_2 = (type_6 *)var_2->pCheck;
        } while (var_2 != (type_6 *)0x0);
      }
    }
    else {
      if (var_1 < 0x9d) {
        return 0;
      }
      if (0x9f < var_1) {
        return 0;
      }
    }
  }
  else {
    if (var_1 != 0x9e) {
      return 0;
    }
    pSVar3 = pWVar2->pSrc;
    var_3 = pSVar3->nSrc;
    if (var_3 < 1) {
      if (var_3 == 0) {
        return 0;
      }
    }
    else if (pSVar3->a[0].iCursor != pExpr->iTable) {
      var_4 = 0;
      var_5 = &pSVar3[1].a[0].regResult;
      do {
        var_4 = var_4 + 1;
        if (var_3 == var_4) {
          return 0;
        }
        var_6 = *var_5;
        var_5 = var_5 + 0x11;
      } while (var_6 != pExpr->iTable);
    }
  }
  pPVar7 = pWalker->pParse;
  pExpr_00 = var_7(pPVar7->db,pExpr,0,(type_12 **)0x0);
  var_9 = var_8((type_7 *)pPVar7->db,pWVar2->pSub,pExpr_00);
  pWVar2->pSub = var_9;
  if (var_9 != (type_8 *)0x0) {
    pExpr->flags = pExpr->flags | 0x8000;
    var_12 = (type_10 *)((type_9)&pExpr->flags & 0xfffffffc);
    var_10(pPVar7->db,pExpr);
    pExpr->op = '\0';
    pExpr->affinity = '\0';
    *(type_13 *)&pExpr->field_0x2 = 0;
    (pExpr->y).sub.regReturn = 0;
    var_11 = (type_9)((int)pExpr + (0x38 - (int)var_12)) >> 2;
    for (; var_11 != 0; var_11 = var_11 - 1) {
      *var_12 = 0;
      var_12 = var_12 + (type_9)bVar13 * -2 + 1;
    }
    pExpr->op = 0x9e;
    pExpr->iColumn = pWVar2->pSub->nExpr + -1;
    pExpr->iTable = pWVar2->pWin->iEphCsr;
  }
  return 0;
}


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

undefined4 MASKED(int param_1,byte *param_2)

{
  byte bVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  undefined4 *puVar8;
  byte bVar9;
  
  bVar9 = 0;
  piVar2 = *(int **)(param_1 + 0x18);
  bVar1 = *param_2;
  if (piVar2[3] == 0) {
    if (bVar1 == 0x9d) {
      if ((param_2[7] & 1) == 0) {
        return 0;
      }
      iVar5 = *piVar2;
      if (iVar5 != 0) {
        do {
          if (iVar5 == *(int *)(param_2 + 0x30)) {
            return 1;
          }
          iVar5 = *(int *)(iVar5 + 0x18);
        } while (iVar5 != 0);
      }
    }
    else {
      if (bVar1 < 0x9d) {
        return 0;
      }
      if (0x9f < bVar1) {
        return 0;
      }
    }
  }
  else {
    if (bVar1 != 0x9e) {
      return 0;
    }
    piVar4 = (int *)piVar2[1];
    iVar5 = *piVar4;
    if (iVar5 < 1) {
      if (iVar5 == 0) {
        return 0;
      }
    }
    else if (piVar4[0xc] != *(int *)(param_2 + 0x1c)) {
      iVar7 = 0;
      piVar4 = piVar4 + 0x1d;
      do {
        iVar7 = iVar7 + 1;
        if (iVar5 == iVar7) {
          return 0;
        }
        iVar3 = *piVar4;
        piVar4 = piVar4 + 0x11;
      } while (iVar3 != *(int *)(param_2 + 0x1c));
    }
  }
  FUN_0003dcd0(0);
  iVar5 = FUN_0004bb50();
  piVar2[2] = iVar5;
  if (iVar5 != 0) {
    *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x8000;
    FUN_00039fe0();
    param_2[0] = 0;
    param_2[1] = 0;
    param_2[2] = 0;
    param_2[3] = 0;
    param_2[0x34] = 0;
    param_2[0x35] = 0;
    param_2[0x36] = 0;
    param_2[0x37] = 0;
    puVar8 = (undefined4 *)((uint)(param_2 + 4) & 0xfffffffc);
    for (uVar6 = (uint)(param_2 + (0x38 - (int)((uint)(param_2 + 4) & 0xfffffffc))) >> 2; uVar6 != 0
        ; uVar6 = uVar6 - 1) {
      *puVar8 = 0;
      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;
    }
    *param_2 = 0x9e;
    *(int *)(param_2 + 0x20) = *(int *)piVar2[2] + -1;
    *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(*piVar2 + 0x24);
  }
  return 0;
}

