
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int exprNodeIsConstantOrGroupBy(Walker *pWalker,Expr *pExpr)

{
  SrcList *pSVar1;
  Expr *pB;
  Parse *pParse;
  int iVar2;
  CollSeq *pCVar3;
  int iVar4;
  
  pSVar1 = (pWalker->u).pSrcList;
  iVar4 = 0;
  iVar2 = pSVar1->nSrc;
  if (0 < iVar2) {
    do {
      pB = *(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4);
      if ((pB == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {
        if (pB == pExpr) goto LAB_0008dcec;
      }
      else {
        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);
        if (iVar2 < 2) {
LAB_0008dcec:
          pParse = pWalker->pParse;
          pCVar3 = sqlite3ExprCollSeq(pParse,pB);
          if (((pCVar3 == (CollSeq *)0x0) &&
              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||
             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {
            return 1;
          }
        }
        iVar2 = pSVar1->nSrc;
      }
      iVar4 = iVar4 + 1;
    } while (iVar4 < iVar2);
  }
  if ((pExpr->flags & 0x800) != 0) {
    pWalker->eCode = '\0';
    return 2;
  }
  iVar2 = exprNodeIsConstant(pWalker,pExpr);
  return iVar2;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 FUN_0008dc50(undefined4 *param_1,int param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  
  piVar1 = (int *)param_1[6];
  iVar5 = 0;
  iVar3 = *piVar1;
  if (0 < iVar3) {
    do {
      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {
        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;
      }
      else {
        iVar3 = FUN_00087500(0xffffffff);
        if (iVar3 < 2) {
LAB_0008dcec:
          piVar2 = (int *)*param_1;
          iVar3 = FUN_0008c2f0();
          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||
             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {
            return 1;
          }
        }
        iVar3 = *piVar1;
      }
      iVar5 = iVar5 + 1;
    } while (iVar5 < iVar3);
  }
  if ((*(byte *)(param_2 + 5) & 8) != 0) {
    *(undefined1 *)(param_1 + 5) = 0;
    return 2;
  }
  uVar4 = FUN_00045800();
  return uVar4;
}


CALL 0x0003a3fd
ADD EAX,0x12d1d3
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
LEA EAX,[EAX + 0xffe87fc8]
MOV ECX,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],EAX
MOV EDI,dword ptr [ECX + 0x18]
TEST EBP,EBP
MOV dword ptr [ESP + 0x8],ECX
SETZ byte ptr [ESP + 0x3]
XOR EBX,EBX
MOV EDX,dword ptr [EDI]
TEST EDX,EDX
JLE 0x0008dcc3
LEA ESI,[ESI]
LEA EAX,[EBX + EBX*0x4]
MOV ESI,dword ptr [EDI + EAX*0x4 + 0x4]
TEST ESI,ESI
JZ 0x0008dce8
CMP byte ptr [ESP + 0x3],0x0
JNZ 0x0008dce8
SUB ESP,0xc
MOV ECX,ESI
MOV EDX,EBP
XOR EAX,EAX
PUSH -0x1
CALL 0x00087500
ADD ESP,0x10
CMP EAX,0x1
JLE 0x0008dcec
MOV EDX,dword ptr [EDI]
ADD EBX,0x1
CMP EBX,EDX
JL 0x0008dc90
TEST byte ptr [EBP + 0x5],0x8
JNZ 0x0008dd40
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x34],EBP
MOV dword ptr [ESP + 0x30],EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00045800
CMP ESI,EBP
JNZ 0x0008dcbc
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,ESI
MOV ECX,dword ptr [EAX]
MOV EAX,ECX
MOV dword ptr [ESP + 0x4],ECX
CALL 0x0008c2f0
MOV ECX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JZ 0x0008dd20
MOV ECX,dword ptr [ESP + 0xc]
CMP dword ptr [EAX + 0xc],ECX
JNZ 0x0008dcba
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JNZ 0x0008dcba
JMP 0x0008dd29
MOV EAX,dword ptr [ECX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JNZ 0x0008dd07
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x8]
MOV byte ptr [EAX + 0x14],0x0
ADD ESP,0x1c
MOV EAX,0x2
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nundefined4 FUN_0008dc50(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  piVar1 = (int *)param_1[6];\n  iVar5 = 0;\n  iVar3 = *piVar1;\n  if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }\n  if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }\n  uVar4 = FUN_00045800();\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 FUN_0008dc50(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  piVar1 = (int *)param_1[6];\n  iVar5 = 0;\n  iVar3 = *piVar1;\n  if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }\n  if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }\n  uVar4 = FUN_00045800();\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0008dc50(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  piVar1 = (int *)param_1[6];\n  iVar5 = 0;\n  iVar3 = *piVar1;\n  if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }\n  if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }\n  uVar4 = FUN_00045800();\n  return uVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)param_1[6];" (assignment_expression "piVar1 = (int *)param_1[6]" identifier = (cast_expression "(int *)param_1[6]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }" { (do_statement "do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);" do (compound_statement "{\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    }" { (if_statement "if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }" if (parenthesized_expression "((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0))" ( (binary_expression "(piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)" (parenthesized_expression "(piVar1[iVar5 * 5 + 1] == 0)" ( (binary_expression "piVar1[iVar5 * 5 + 1] == 0" (subscript_expression "piVar1[iVar5 * 5 + 1]" identifier [ (binary_expression "iVar5 * 5 + 1" (binary_expression "iVar5 * 5" identifier * number_literal) + number_literal) ]) == number_literal) )) || (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }" { (if_statement "if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;" if (parenthesized_expression "(piVar1[iVar5 * 5 + 1] == param_2)" ( (binary_expression "piVar1[iVar5 * 5 + 1] == param_2" (subscript_expression "piVar1[iVar5 * 5 + 1]" identifier [ (binary_expression "iVar5 * 5 + 1" (binary_expression "iVar5 * 5" identifier * number_literal) + number_literal) ]) == identifier) )) (goto_statement "goto LAB_0008dcec;" goto statement_identifier ;)) }) (else_clause "else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }" else (compound_statement "{\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }" { (expression_statement "iVar3 = FUN_00087500(0xffffffff);" (assignment_expression "iVar3 = FUN_00087500(0xffffffff)" identifier = (call_expression "FUN_00087500(0xffffffff)" identifier (argument_list "(0xffffffff)" ( number_literal )))) ;) (if_statement "if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }" if (parenthesized_expression "(iVar3 < 2)" ( (binary_expression "iVar3 < 2" identifier < number_literal) )) (compound_statement "{\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }" { (labeled_statement "LAB_0008dcec:\n          piVar2 = (int *)*param_1;" statement_identifier : (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;)) (expression_statement "iVar3 = FUN_0008c2f0();" (assignment_expression "iVar3 = FUN_0008c2f0()" identifier = (call_expression "FUN_0008c2f0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }" if (parenthesized_expression "(((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0))))" ( (binary_expression "((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))" (parenthesized_expression "((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0))" ( (binary_expression "(iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)" ( (comma_expression "iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0" (assignment_expression "iVar3 = *(int *)(*piVar2 + 8)" identifier = (pointer_expression "*(int *)(*piVar2 + 8)" * (cast_expression "(int *)(*piVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 8)" ( (binary_expression "*piVar2 + 8" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))" ( (parenthesized_expression "(*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0))" ( (binary_expression "*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)" (binary_expression "*(code **)(iVar3 + 0xc) == FUN_00042df0" (pointer_expression "*(code **)(iVar3 + 0xc)" * (cast_expression "(code **)(iVar3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) == identifier) && (parenthesized_expression "(*(int *)(iVar3 + 8) == 0)" ( (binary_expression "*(int *)(iVar3 + 8) == 0" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) == number_literal) ))) )) ))) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < iVar3)" ( (binary_expression "iVar5 < iVar3" identifier < identifier) )) ;) })) (if_statement "if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }" if (parenthesized_expression "((*(byte *)(param_2 + 5) & 8) != 0)" ( (binary_expression "(*(byte *)(param_2 + 5) & 8) != 0" (parenthesized_expression "(*(byte *)(param_2 + 5) & 8)" ( (binary_expression "*(byte *)(param_2 + 5) & 8" (pointer_expression "*(byte *)(param_2 + 5)" * (cast_expression "(byte *)(param_2 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 5)" ( (binary_expression "param_2 + 5" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }" { (expression_statement "*(undefined1 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 5) = 0" (pointer_expression "*(undefined1 *)(param_1 + 5)" * (cast_expression "(undefined1 *)(param_1 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "uVar4 = FUN_00045800();" (assignment_expression "uVar4 = FUN_00045800()" identifier = (call_expression "FUN_00045800()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint exprNodeIsConstantOrGroupBy(Walker *pWalker,Expr *pExpr)\n\n{\n  SrcList *pSVar1;\n  Expr *pB;\n  Parse *pParse;\n  int iVar2;\n  CollSeq *pCVar3;\n  int iVar4;\n  \n  pSVar1 = (pWalker->u).pSrcList;\n  iVar4 = 0;\n  iVar2 = pSVar1->nSrc;\n  if (0 < iVar2) {\n    do {\n      pB = *(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4);\n      if ((pB == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n        if (pB == pExpr) goto LAB_0008dcec;\n      }\n      else {\n        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);\n        if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }\n        iVar2 = pSVar1->nSrc;\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < iVar2);\n  }\n  if ((pExpr->flags & 0x800) != 0) {\n    pWalker->eCode = '\0';\n    return 2;\n  }\n  iVar2 = exprNodeIsConstant(pWalker,pExpr);\n  return iVar2;\n}\n\n" comment (function_definition "int exprNodeIsConstantOrGroupBy(Walker *pWalker,Expr *pExpr)\n\n{\n  SrcList *pSVar1;\n  Expr *pB;\n  Parse *pParse;\n  int iVar2;\n  CollSeq *pCVar3;\n  int iVar4;\n  \n  pSVar1 = (pWalker->u).pSrcList;\n  iVar4 = 0;\n  iVar2 = pSVar1->nSrc;\n  if (0 < iVar2) {\n    do {\n      pB = *(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4);\n      if ((pB == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n        if (pB == pExpr) goto LAB_0008dcec;\n      }\n      else {\n        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);\n        if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }\n        iVar2 = pSVar1->nSrc;\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < iVar2);\n  }\n  if ((pExpr->flags & 0x800) != 0) {\n    pWalker->eCode = '\0';\n    return 2;\n  }\n  iVar2 = exprNodeIsConstant(pWalker,pExpr);\n  return iVar2;\n}" primitive_type (function_declarator "exprNodeIsConstantOrGroupBy(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  SrcList *pSVar1;\n  Expr *pB;\n  Parse *pParse;\n  int iVar2;\n  CollSeq *pCVar3;\n  int iVar4;\n  \n  pSVar1 = (pWalker->u).pSrcList;\n  iVar4 = 0;\n  iVar2 = pSVar1->nSrc;\n  if (0 < iVar2) {\n    do {\n      pB = *(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4);\n      if ((pB == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n        if (pB == pExpr) goto LAB_0008dcec;\n      }\n      else {\n        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);\n        if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }\n        iVar2 = pSVar1->nSrc;\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < iVar2);\n  }\n  if ((pExpr->flags & 0x800) != 0) {\n    pWalker->eCode = '\0';\n    return 2;\n  }\n  iVar2 = exprNodeIsConstant(pWalker,pExpr);\n  return iVar2;\n}" { (declaration "SrcList *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "Expr *pB;" type_identifier (pointer_declarator "*pB" * identifier) ;) (declaration "Parse *pParse;" type_identifier (pointer_declarator "*pParse" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "CollSeq *pCVar3;" type_identifier (pointer_declarator "*pCVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "pSVar1 = (pWalker->u).pSrcList;" (assignment_expression "pSVar1 = (pWalker->u).pSrcList" identifier = (field_expression "(pWalker->u).pSrcList" (parenthesized_expression "(pWalker->u)" ( (field_expression "pWalker->u" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = pSVar1->nSrc;" (assignment_expression "iVar2 = pSVar1->nSrc" identifier = (field_expression "pSVar1->nSrc" identifier -> field_identifier)) ;) (if_statement "if (0 < iVar2) {\n    do {\n      pB = *(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4);\n      if ((pB == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n        if (pB == pExpr) goto LAB_0008dcec;\n      }\n      else {\n        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);\n        if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }\n        iVar2 = pSVar1->nSrc;\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < iVar2);\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    do {\n      pB = *(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4);\n      if ((pB == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n        if (pB == pExpr) goto LAB_0008dcec;\n      }\n      else {\n        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);\n        if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }\n        iVar2 = pSVar1->nSrc;\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < iVar2);\n  }" { (do_statement "do {\n      pB = *(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4);\n      if ((pB == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n        if (pB == pExpr) goto LAB_0008dcec;\n      }\n      else {\n        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);\n        if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }\n        iVar2 = pSVar1->nSrc;\n      }\n      iVar4 = iVar4 + 1;\n    } while (iVar4 < iVar2);" do (compound_statement "{\n      pB = *(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4);\n      if ((pB == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n        if (pB == pExpr) goto LAB_0008dcec;\n      }\n      else {\n        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);\n        if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }\n        iVar2 = pSVar1->nSrc;\n      }\n      iVar4 = iVar4 + 1;\n    }" { (expression_statement "pB = *(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4);" (assignment_expression "pB = *(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4)" identifier = (pointer_expression "*(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4)" * (cast_expression "(Expr **)((int)pSVar1->a + iVar4 * 0x14 + -4)" ( (type_descriptor "Expr **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pSVar1->a + iVar4 * 0x14 + -4)" ( (binary_expression "(int)pSVar1->a + iVar4 * 0x14 + -4" (binary_expression "(int)pSVar1->a + iVar4 * 0x14" (cast_expression "(int)pSVar1->a" ( (type_descriptor "int" primitive_type) ) (field_expression "pSVar1->a" identifier -> field_identifier)) + (binary_expression "iVar4 * 0x14" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if ((pB == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n        if (pB == pExpr) goto LAB_0008dcec;\n      }\n      else {\n        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);\n        if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }\n        iVar2 = pSVar1->nSrc;\n      }" if (parenthesized_expression "((pB == (Expr *)0x0) || (pExpr == (Expr *)0x0))" ( (binary_expression "(pB == (Expr *)0x0) || (pExpr == (Expr *)0x0)" (parenthesized_expression "(pB == (Expr *)0x0)" ( (binary_expression "pB == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pExpr == (Expr *)0x0)" ( (binary_expression "pExpr == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        if (pB == pExpr) goto LAB_0008dcec;\n      }" { (if_statement "if (pB == pExpr) goto LAB_0008dcec;" if (parenthesized_expression "(pB == pExpr)" ( (binary_expression "pB == pExpr" identifier == identifier) )) (goto_statement "goto LAB_0008dcec;" goto statement_identifier ;)) }) (else_clause "else {\n        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);\n        if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }\n        iVar2 = pSVar1->nSrc;\n      }" else (compound_statement "{\n        iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);\n        if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }\n        iVar2 = pSVar1->nSrc;\n      }" { (expression_statement "iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1);" (assignment_expression "iVar2 = sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1)" identifier = (call_expression "sqlite3ExprCompare((Parse *)0x0,pExpr,pB,-1)" identifier (argument_list "((Parse *)0x0,pExpr,pB,-1)" ( (cast_expression "(Parse *)0x0" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 < 2) {\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }" if (parenthesized_expression "(iVar2 < 2)" ( (binary_expression "iVar2 < 2" identifier < number_literal) )) (compound_statement "{\nLAB_0008dcec:\n          pParse = pWalker->pParse;\n          pCVar3 = sqlite3ExprCollSeq(pParse,pB);\n          if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }\n        }" { (labeled_statement "LAB_0008dcec:\n          pParse = pWalker->pParse;" statement_identifier : (expression_statement "pParse = pWalker->pParse;" (assignment_expression "pParse = pWalker->pParse" identifier = (field_expression "pWalker->pParse" identifier -> field_identifier)) ;)) (expression_statement "pCVar3 = sqlite3ExprCollSeq(pParse,pB);" (assignment_expression "pCVar3 = sqlite3ExprCollSeq(pParse,pB)" identifier = (call_expression "sqlite3ExprCollSeq(pParse,pB)" identifier (argument_list "(pParse,pB)" ( identifier , identifier )))) ;) (if_statement "if (((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))) {\n            return 1;\n          }" if (parenthesized_expression "(((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0))))" ( (binary_expression "((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)) ||\n             ((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))" (parenthesized_expression "((pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0))" ( (binary_expression "(pCVar3 == (CollSeq *)0x0) &&\n              (pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)" (parenthesized_expression "(pCVar3 == (CollSeq *)0x0)" ( (binary_expression "pCVar3 == (CollSeq *)0x0" identifier == (cast_expression "(CollSeq *)0x0" ( (type_descriptor "CollSeq *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0)" ( (comma_expression "pCVar3 = pParse->db->pDfltColl, pCVar3 == (CollSeq *)0x0" (assignment_expression "pCVar3 = pParse->db->pDfltColl" identifier = (field_expression "pParse->db->pDfltColl" (field_expression "pParse->db" identifier -> field_identifier) -> field_identifier)) , (binary_expression "pCVar3 == (CollSeq *)0x0" identifier == (cast_expression "(CollSeq *)0x0" ( (type_descriptor "CollSeq *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) || (parenthesized_expression "((pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)))" ( (parenthesized_expression "(pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0))" ( (binary_expression "pCVar3->xCmp == binCollFunc && (pCVar3->pUser == (void *)0x0)" (binary_expression "pCVar3->xCmp == binCollFunc" (field_expression "pCVar3->xCmp" identifier -> field_identifier) == identifier) && (parenthesized_expression "(pCVar3->pUser == (void *)0x0)" ( (binary_expression "pCVar3->pUser == (void *)0x0" (field_expression "pCVar3->pUser" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) ))) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar2 = pSVar1->nSrc;" (assignment_expression "iVar2 = pSVar1->nSrc" identifier = (field_expression "pSVar1->nSrc" identifier -> field_identifier)) ;) }))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < iVar2)" ( (binary_expression "iVar4 < iVar2" identifier < identifier) )) ;) })) (if_statement "if ((pExpr->flags & 0x800) != 0) {\n    pWalker->eCode = '\0';\n    return 2;\n  }" if (parenthesized_expression "((pExpr->flags & 0x800) != 0)" ( (binary_expression "(pExpr->flags & 0x800) != 0" (parenthesized_expression "(pExpr->flags & 0x800)" ( (binary_expression "pExpr->flags & 0x800" (field_expression "pExpr->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    pWalker->eCode = '\0';\n    return 2;\n  }" { (expression_statement "pWalker->eCode = '\0';" (assignment_expression "pWalker->eCode = '\0'" (field_expression "pWalker->eCode" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "iVar2 = exprNodeIsConstant(pWalker,pExpr);" (assignment_expression "iVar2 = exprNodeIsConstant(pWalker,pExpr)" identifier = (call_expression "exprNodeIsConstant(pWalker,pExpr)" identifier (argument_list "(pWalker,pExpr)" ( identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0008dc50(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  piVar1 = (int *)param_1[6];\n  iVar5 = 0;\n  iVar3 = *piVar1;\n  if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }\n  if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }\n  uVar4 = FUN_00045800();\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_0008dc50(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  piVar1 = (int *)param_1[6];\n  iVar5 = 0;\n  iVar3 = *piVar1;\n  if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }\n  if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }\n  uVar4 = FUN_00045800();\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0008dc50(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  piVar1 = (int *)param_1[6];\n  iVar5 = 0;\n  iVar3 = *piVar1;\n  if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }\n  if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }\n  uVar4 = FUN_00045800();\n  return uVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)param_1[6];" (assignment_expression "piVar1 = (int *)param_1[6]" identifier = (cast_expression "(int *)param_1[6]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }" { (do_statement "do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);" do (compound_statement "{\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    }" { (if_statement "if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }" if (parenthesized_expression "((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0))" ( (binary_expression "(piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)" (parenthesized_expression "(piVar1[iVar5 * 5 + 1] == 0)" ( (binary_expression "piVar1[iVar5 * 5 + 1] == 0" (subscript_expression "piVar1[iVar5 * 5 + 1]" identifier [ (binary_expression "iVar5 * 5 + 1" (binary_expression "iVar5 * 5" identifier * number_literal) + number_literal) ]) == number_literal) )) || (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }" { (if_statement "if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;" if (parenthesized_expression "(piVar1[iVar5 * 5 + 1] == param_2)" ( (binary_expression "piVar1[iVar5 * 5 + 1] == param_2" (subscript_expression "piVar1[iVar5 * 5 + 1]" identifier [ (binary_expression "iVar5 * 5 + 1" (binary_expression "iVar5 * 5" identifier * number_literal) + number_literal) ]) == identifier) )) (goto_statement "goto LAB_0008dcec;" goto statement_identifier ;)) }) (else_clause "else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }" else (compound_statement "{\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }" { (expression_statement "iVar3 = FUN_00087500(0xffffffff);" (assignment_expression "iVar3 = FUN_00087500(0xffffffff)" identifier = (call_expression "FUN_00087500(0xffffffff)" identifier (argument_list "(0xffffffff)" ( number_literal )))) ;) (if_statement "if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }" if (parenthesized_expression "(iVar3 < 2)" ( (binary_expression "iVar3 < 2" identifier < number_literal) )) (compound_statement "{\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }" { (labeled_statement "LAB_0008dcec:\n          piVar2 = (int *)*param_1;" statement_identifier : (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;)) (expression_statement "iVar3 = FUN_0008c2f0();" (assignment_expression "iVar3 = FUN_0008c2f0()" identifier = (call_expression "FUN_0008c2f0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }" if (parenthesized_expression "(((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0))))" ( (binary_expression "((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))" (parenthesized_expression "((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0))" ( (binary_expression "(iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)" ( (comma_expression "iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0" (assignment_expression "iVar3 = *(int *)(*piVar2 + 8)" identifier = (pointer_expression "*(int *)(*piVar2 + 8)" * (cast_expression "(int *)(*piVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 8)" ( (binary_expression "*piVar2 + 8" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) || (parenthesized_expression "((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))" ( (parenthesized_expression "(*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0))" ( (binary_expression "*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)" (binary_expression "*(code **)(iVar3 + 0xc) == FUN_00042df0" (pointer_expression "*(code **)(iVar3 + 0xc)" * (cast_expression "(code **)(iVar3 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) == identifier) && (parenthesized_expression "(*(int *)(iVar3 + 8) == 0)" ( (binary_expression "*(int *)(iVar3 + 8) == 0" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) == number_literal) ))) )) ))) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < iVar3)" ( (binary_expression "iVar5 < iVar3" identifier < identifier) )) ;) })) (if_statement "if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }" if (parenthesized_expression "((*(byte *)(param_2 + 5) & 8) != 0)" ( (binary_expression "(*(byte *)(param_2 + 5) & 8) != 0" (parenthesized_expression "(*(byte *)(param_2 + 5) & 8)" ( (binary_expression "*(byte *)(param_2 + 5) & 8" (pointer_expression "*(byte *)(param_2 + 5)" * (cast_expression "(byte *)(param_2 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 5)" ( (binary_expression "param_2 + 5" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }" { (expression_statement "*(undefined1 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 5) = 0" (pointer_expression "*(undefined1 *)(param_1 + 5)" * (cast_expression "(undefined1 *)(param_1 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "uVar4 = FUN_00045800();" (assignment_expression "uVar4 = FUN_00045800()" identifier = (call_expression "FUN_00045800()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) == IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) , (binary_expression IDENT == LIT)) ))) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) ))) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0008dc50(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  piVar1 = (int *)param_1[6];\n  iVar5 = 0;\n  iVar3 = *piVar1;\n  if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }\n  if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }\n  uVar4 = FUN_00045800();\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "FUN_0008dc50(undefined4 *param_1,int param_2)" (identifier "FUN_0008dc50") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  piVar1 = (int *)param_1[6];\n  iVar5 = 0;\n  iVar3 = *piVar1;\n  if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }\n  if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }\n  uVar4 = FUN_00045800();\n  return uVar4;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "piVar1 = (int *)param_1[6];" (assignment_expression "piVar1 = (int *)param_1[6]" (identifier "piVar1") (= "=") (cast_expression "(int *)param_1[6]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (0 < iVar3) {\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);\n  }" ({ "{") (do_statement "do {\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < iVar3);" (do "do") (compound_statement "{\n      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }\n      iVar5 = iVar5 + 1;\n    }" ({ "{") (if_statement "if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }\n      else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }" (if "if") (parenthesized_expression "((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0))" (( "(") (binary_expression "(piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)" (parenthesized_expression "(piVar1[iVar5 * 5 + 1] == 0)" (( "(") (binary_expression "piVar1[iVar5 * 5 + 1] == 0" (subscript_expression "piVar1[iVar5 * 5 + 1]" (identifier "piVar1") ([ "[") (binary_expression "iVar5 * 5 + 1" (binary_expression "iVar5 * 5" (identifier "iVar5") (* "*") (number_literal "5")) (+ "+") (number_literal "1")) (] "]")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;\n      }" ({ "{") (if_statement "if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;" (if "if") (parenthesized_expression "(piVar1[iVar5 * 5 + 1] == param_2)" (( "(") (binary_expression "piVar1[iVar5 * 5 + 1] == param_2" (subscript_expression "piVar1[iVar5 * 5 + 1]" (identifier "piVar1") ([ "[") (binary_expression "iVar5 * 5 + 1" (binary_expression "iVar5 * 5" (identifier "iVar5") (* "*") (number_literal "5")) (+ "+") (number_literal "1")) (] "]")) (== "==") (identifier "param_2")) () ")")) (goto_statement "goto LAB_0008dcec;" (goto "goto") (statement_identifier "LAB_0008dcec") (; ";"))) (} "}")) (else_clause "else {\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }" (else "else") (compound_statement "{\n        iVar3 = FUN_00087500(0xffffffff);\n        if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }\n        iVar3 = *piVar1;\n      }" ({ "{") (expression_statement "iVar3 = FUN_00087500(0xffffffff);" (assignment_expression "iVar3 = FUN_00087500(0xffffffff)" (identifier "iVar3") (= "=") (call_expression "FUN_00087500(0xffffffff)" (identifier "FUN_00087500") (argument_list "(0xffffffff)" (( "(") (number_literal "0xffffffff") () ")")))) (; ";")) (if_statement "if (iVar3 < 2) {\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }" (if "if") (parenthesized_expression "(iVar3 < 2)" (( "(") (binary_expression "iVar3 < 2" (identifier "iVar3") (< "<") (number_literal "2")) () ")")) (compound_statement "{\nLAB_0008dcec:\n          piVar2 = (int *)*param_1;\n          iVar3 = FUN_0008c2f0();\n          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }\n        }" ({ "{") (labeled_statement "LAB_0008dcec:\n          piVar2 = (int *)*param_1;" (statement_identifier "LAB_0008dcec") (: ":") (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" (identifier "piVar2") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";"))) (expression_statement "iVar3 = FUN_0008c2f0();" (assignment_expression "iVar3 = FUN_0008c2f0()" (identifier "iVar3") (= "=") (call_expression "FUN_0008c2f0()" (identifier "FUN_0008c2f0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {\n            return 1;\n          }" (if "if") (parenthesized_expression "(((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0))))" (( "(") (binary_expression "((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||\n             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))" (parenthesized_expression "((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0))" (( "(") (binary_expression "(iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)" (( "(") (comma_expression "iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0" (assignment_expression "iVar3 = *(int *)(*piVar2 + 8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*piVar2 + 8)" (* "*") (cast_expression "(int *)(*piVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 8)" (( "(") (binary_expression "*piVar2 + 8" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "8")) () ")"))))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))" (( "(") (parenthesized_expression "(*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0))" (( "(") (binary_expression "*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)" (binary_expression "*(code **)(iVar3 + 0xc) == FUN_00042df0" (pointer_expression "*(code **)(iVar3 + 0xc)" (* "*") (cast_expression "(code **)(iVar3 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (identifier "FUN_00042df0")) (&& "&&") (parenthesized_expression "(*(int *)(iVar3 + 8) == 0)" (( "(") (binary_expression "*(int *)(iVar3 + 8) == 0" (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n            return 1;\n          }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (} "}")))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 < iVar3)" (( "(") (binary_expression "iVar5 < iVar3" (identifier "iVar5") (< "<") (identifier "iVar3")) () ")")) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_2 + 5) & 8) != 0) {\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 5) & 8) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 5) & 8) != 0" (parenthesized_expression "(*(byte *)(param_2 + 5) & 8)" (( "(") (binary_expression "*(byte *)(param_2 + 5) & 8" (pointer_expression "*(byte *)(param_2 + 5)" (* "*") (cast_expression "(byte *)(param_2 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 5)" (( "(") (binary_expression "param_2 + 5" (identifier "param_2") (+ "+") (number_literal "5")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined1 *)(param_1 + 5) = 0;\n    return 2;\n  }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 5) = 0" (pointer_expression "*(undefined1 *)(param_1 + 5)" (* "*") (cast_expression "(undefined1 *)(param_1 + 5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (expression_statement "uVar4 = FUN_00045800();" (assignment_expression "uVar4 = FUN_00045800()" (identifier "uVar4") (= "=") (call_expression "FUN_00045800()" (identifier "FUN_00045800") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int function_1(type_1 *pWalker,type_2 *var_4)

{
  type_3 *pSVar1;
  type_2 *var_3;
  type_4 *pParse;
  int var_1;
  type_5 *var_7;
  int var_2;
  
  pSVar1 = (pWalker->u).pSrcList;
  var_2 = 0;
  var_1 = pSVar1->nSrc;
  if (0 < var_1) {
    do {
      var_3 = *(type_2 **)((int)pSVar1->a + var_2 * 0x14 + -4);
      if ((var_3 == (type_2 *)0x0) || (var_4 == (type_2 *)0x0)) {
        if (var_3 == var_4) goto LAB_0008dcec;
      }
      else {
        var_1 = var_5((type_4 *)0x0,var_4,var_3,-1);
        if (var_1 < 2) {
LAB_0008dcec:
          pParse = pWalker->pParse;
          var_7 = var_6(pParse,var_3);
          if (((var_7 == (type_5 *)0x0) &&
              (var_7 = pParse->db->pDfltColl, var_7 == (type_5 *)0x0)) ||
             ((var_7->xCmp == var_8 && (var_7->pUser == (void *)0x0)))) {
            return 1;
          }
        }
        var_1 = pSVar1->nSrc;
      }
      var_2 = var_2 + 1;
    } while (var_2 < var_1);
  }
  if ((var_4->flags & 0x800) != 0) {
    pWalker->eCode = '\0';
    return 2;
  }
  var_1 = var_9(pWalker,var_4);
  return var_1;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 MASKED(undefined4 *param_1,int param_2)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  
  piVar1 = (int *)param_1[6];
  iVar5 = 0;
  iVar3 = *piVar1;
  if (0 < iVar3) {
    do {
      if ((piVar1[iVar5 * 5 + 1] == 0) || (param_2 == 0)) {
        if (piVar1[iVar5 * 5 + 1] == param_2) goto LAB_0008dcec;
      }
      else {
        iVar3 = FUN_00087500(0xffffffff);
        if (iVar3 < 2) {
LAB_0008dcec:
          piVar2 = (int *)*param_1;
          iVar3 = FUN_0008c2f0();
          if (((iVar3 == 0) && (iVar3 = *(int *)(*piVar2 + 8), iVar3 == 0)) ||
             ((*(code **)(iVar3 + 0xc) == FUN_00042df0 && (*(int *)(iVar3 + 8) == 0)))) {
            return 1;
          }
        }
        iVar3 = *piVar1;
      }
      iVar5 = iVar5 + 1;
    } while (iVar5 < iVar3);
  }
  if ((*(byte *)(param_2 + 5) & 8) != 0) {
    *(undefined1 *)(param_1 + 5) = 0;
    return 2;
  }
  uVar4 = FUN_00045800();
  return uVar4;
}

