
int checkColumnOverlap(IdList *pIdList,ExprList *pEList)

{
  int iVar1;
  int iVar2;
  char **ppcVar3;
  
  if ((pIdList != (IdList *)0x0) && (pEList != (ExprList *)0x0)) {
    iVar1 = pEList->nExpr;
    if (iVar1 < 1) {
      return 0;
    }
    ppcVar3 = &pEList->a[0].zEName;
    do {
      iVar2 = sqlite3IdListIndex(pIdList,*ppcVar3);
      if (-1 < iVar2) {
        return 1;
      }
      ppcVar3 = ppcVar3 + 3;
    } while ((ExprList_item *)ppcVar3 != pEList[1].a + (iVar1 - 1));
    return 0;
  }
  return 1;
}



undefined8 FUN_00111f44(long param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  if ((param_1 != 0) && (param_2 != (int *)0x0)) {
    iVar1 = *param_2;
    if (iVar1 < 1) {
      return 0;
    }
    piVar3 = param_2 + 4;
    do {
      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);
      if (-1 < iVar2) {
        return 1;
      }
      piVar3 = piVar3 + 6;
    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);
    return 0;
  }
  return 1;
}


TEST RDI,RDI
JZ 0x00111f8a
TEST RSI,RSI
JZ 0x00111f8a
MOV EAX,dword ptr [RSI]
TEST EAX,EAX
JLE 0x00111f90
PUSH R12
PUSH RBP
PUSH RBX
MOV RBP,RDI
LEA RBX,[RSI + 0x10]
LEA EAX,[RAX + -0x1]
LEA RAX,[RAX + RAX*0x2]
LEA R12,[RSI + RAX*0x8 + 0x28]
MOV RSI,qword ptr [RBX]
MOV RDI,RBP
CALL 0x001114c6
TEST EAX,EAX
JNS 0x00111f96
ADD RBX,0x18
CMP RBX,R12
JNZ 0x00111f6b
MOV EAX,0x0
JMP 0x00111f9b
MOV EAX,0x1
RET
MOV EAX,0x0
RET
MOV EAX,0x1
POP RBX
POP RBP
POP R12
RET
(translation_unit "undefined8 FUN_00111f44(long param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_00111f44(long param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00111f44(long param_1,int *param_2)" identifier (parameter_list "(long param_1,int *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 != (int *)0x0))" ( (binary_expression "(param_1 != 0) && (param_2 != (int *)0x0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }" { (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (iVar1 < 1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar3 = param_2 + 4;" (assignment_expression "piVar3 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (do_statement "do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);" do (compound_statement "{\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    }" { (expression_statement "iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);" (assignment_expression "iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3)" identifier = (call_expression "FUN_001114c6(param_1,*(undefined8 *)piVar3)" identifier (argument_list "(param_1,*(undefined8 *)piVar3)" ( identifier , (pointer_expression "*(undefined8 *)piVar3" * (cast_expression "(undefined8 *)piVar3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (-1 < iVar2) {\n        return 1;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar3 = piVar3 + 6;" (assignment_expression "piVar3 = piVar3 + 6" identifier = (binary_expression "piVar3 + 6" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10)" ( (binary_expression "piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10" identifier != (binary_expression "param_2 + (ulong)(iVar1 - 1) * 6 + 10" (binary_expression "param_2 + (ulong)(iVar1 - 1) * 6" identifier + (binary_expression "(ulong)(iVar1 - 1) * 6" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 - 1)" ( (binary_expression "iVar1 - 1" identifier - number_literal) ))) * number_literal)) + number_literal)) )) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int checkColumnOverlap(IdList *pIdList,ExprList *pEList)\n\n{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  \n  if ((pIdList != (IdList *)0x0) && (pEList != (ExprList *)0x0)) {\n    iVar1 = pEList->nExpr;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    ppcVar3 = &pEList->a[0].zEName;\n    do {\n      iVar2 = sqlite3IdListIndex(pIdList,*ppcVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      ppcVar3 = ppcVar3 + 3;\n    } while ((ExprList_item *)ppcVar3 != pEList[1].a + (iVar1 - 1));\n    return 0;\n  }\n  return 1;\n}\n\n" (function_definition "int checkColumnOverlap(IdList *pIdList,ExprList *pEList)\n\n{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  \n  if ((pIdList != (IdList *)0x0) && (pEList != (ExprList *)0x0)) {\n    iVar1 = pEList->nExpr;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    ppcVar3 = &pEList->a[0].zEName;\n    do {\n      iVar2 = sqlite3IdListIndex(pIdList,*ppcVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      ppcVar3 = ppcVar3 + 3;\n    } while ((ExprList_item *)ppcVar3 != pEList[1].a + (iVar1 - 1));\n    return 0;\n  }\n  return 1;\n}" primitive_type (function_declarator "checkColumnOverlap(IdList *pIdList,ExprList *pEList)" identifier (parameter_list "(IdList *pIdList,ExprList *pEList)" ( (parameter_declaration "IdList *pIdList" type_identifier (pointer_declarator "*pIdList" * identifier)) , (parameter_declaration "ExprList *pEList" type_identifier (pointer_declarator "*pEList" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char **ppcVar3;\n  \n  if ((pIdList != (IdList *)0x0) && (pEList != (ExprList *)0x0)) {\n    iVar1 = pEList->nExpr;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    ppcVar3 = &pEList->a[0].zEName;\n    do {\n      iVar2 = sqlite3IdListIndex(pIdList,*ppcVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      ppcVar3 = ppcVar3 + 3;\n    } while ((ExprList_item *)ppcVar3 != pEList[1].a + (iVar1 - 1));\n    return 0;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char **ppcVar3;" primitive_type (pointer_declarator "**ppcVar3" * (pointer_declarator "*ppcVar3" * identifier)) ;) (if_statement "if ((pIdList != (IdList *)0x0) && (pEList != (ExprList *)0x0)) {\n    iVar1 = pEList->nExpr;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    ppcVar3 = &pEList->a[0].zEName;\n    do {\n      iVar2 = sqlite3IdListIndex(pIdList,*ppcVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      ppcVar3 = ppcVar3 + 3;\n    } while ((ExprList_item *)ppcVar3 != pEList[1].a + (iVar1 - 1));\n    return 0;\n  }" if (parenthesized_expression "((pIdList != (IdList *)0x0) && (pEList != (ExprList *)0x0))" ( (binary_expression "(pIdList != (IdList *)0x0) && (pEList != (ExprList *)0x0)" (parenthesized_expression "(pIdList != (IdList *)0x0)" ( (binary_expression "pIdList != (IdList *)0x0" identifier != (cast_expression "(IdList *)0x0" ( (type_descriptor "IdList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pEList != (ExprList *)0x0)" ( (binary_expression "pEList != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    iVar1 = pEList->nExpr;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    ppcVar3 = &pEList->a[0].zEName;\n    do {\n      iVar2 = sqlite3IdListIndex(pIdList,*ppcVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      ppcVar3 = ppcVar3 + 3;\n    } while ((ExprList_item *)ppcVar3 != pEList[1].a + (iVar1 - 1));\n    return 0;\n  }" { (expression_statement "iVar1 = pEList->nExpr;" (assignment_expression "iVar1 = pEList->nExpr" identifier = (field_expression "pEList->nExpr" identifier -> field_identifier)) ;) (if_statement "if (iVar1 < 1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "ppcVar3 = &pEList->a[0].zEName;" (assignment_expression "ppcVar3 = &pEList->a[0].zEName" identifier = (pointer_expression "&pEList->a[0].zEName" & (field_expression "pEList->a[0].zEName" (subscript_expression "pEList->a[0]" (field_expression "pEList->a" identifier -> field_identifier) [ number_literal ]) . field_identifier))) ;) (do_statement "do {\n      iVar2 = sqlite3IdListIndex(pIdList,*ppcVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      ppcVar3 = ppcVar3 + 3;\n    } while ((ExprList_item *)ppcVar3 != pEList[1].a + (iVar1 - 1));" do (compound_statement "{\n      iVar2 = sqlite3IdListIndex(pIdList,*ppcVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      ppcVar3 = ppcVar3 + 3;\n    }" { (expression_statement "iVar2 = sqlite3IdListIndex(pIdList,*ppcVar3);" (assignment_expression "iVar2 = sqlite3IdListIndex(pIdList,*ppcVar3)" identifier = (call_expression "sqlite3IdListIndex(pIdList,*ppcVar3)" identifier (argument_list "(pIdList,*ppcVar3)" ( identifier , (pointer_expression "*ppcVar3" * identifier) )))) ;) (if_statement "if (-1 < iVar2) {\n        return 1;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "ppcVar3 = ppcVar3 + 3;" (assignment_expression "ppcVar3 = ppcVar3 + 3" identifier = (binary_expression "ppcVar3 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "((ExprList_item *)ppcVar3 != pEList[1].a + (iVar1 - 1))" ( (binary_expression "(ExprList_item *)ppcVar3 != pEList[1].a + (iVar1 - 1)" (cast_expression "(ExprList_item *)ppcVar3" ( (type_descriptor "ExprList_item *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (binary_expression "pEList[1].a + (iVar1 - 1)" (field_expression "pEList[1].a" (subscript_expression "pEList[1]" identifier [ number_literal ]) . field_identifier) + (parenthesized_expression "(iVar1 - 1)" ( (binary_expression "iVar1 - 1" identifier - number_literal) )))) )) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined8 FUN_00111f44(long param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }\n  return 1;\n}\n\n" (function_definition "undefined8 FUN_00111f44(long param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00111f44(long param_1,int *param_2)" identifier (parameter_list "(long param_1,int *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 != (int *)0x0))" ( (binary_expression "(param_1 != 0) && (param_2 != (int *)0x0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }" { (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (iVar1 < 1) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar3 = param_2 + 4;" (assignment_expression "piVar3 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (do_statement "do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);" do (compound_statement "{\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    }" { (expression_statement "iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);" (assignment_expression "iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3)" identifier = (call_expression "FUN_001114c6(param_1,*(undefined8 *)piVar3)" identifier (argument_list "(param_1,*(undefined8 *)piVar3)" ( identifier , (pointer_expression "*(undefined8 *)piVar3" * (cast_expression "(undefined8 *)piVar3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (if_statement "if (-1 < iVar2) {\n        return 1;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar3 = piVar3 + 6;" (assignment_expression "piVar3 = piVar3 + 6" identifier = (binary_expression "piVar3 + 6" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10)" ( (binary_expression "piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10" identifier != (binary_expression "param_2 + (ulong)(iVar1 - 1) * 6 + 10" (binary_expression "param_2 + (ulong)(iVar1 - 1) * 6" identifier + (binary_expression "(ulong)(iVar1 - 1) * 6" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 - 1)" ( (binary_expression "iVar1 - 1" identifier - number_literal) ))) * number_literal)) + number_literal)) )) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression (binary_expression IDENT + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) * LIT)) + LIT)) )) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00111f44(long param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }\n  return 1;\n}" (type_identifier "undefined8") (function_declarator "FUN_00111f44(long param_1,int *param_2)" (identifier "FUN_00111f44") (parameter_list "(long param_1,int *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (if_statement "if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (param_2 != (int *)0x0))" (( "(") (binary_expression "(param_1 != 0) && (param_2 != (int *)0x0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != (int *)0x0)" (( "(") (binary_expression "param_2 != (int *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = *param_2;\n    if (iVar1 < 1) {\n      return 0;\n    }\n    piVar3 = param_2 + 4;\n    do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);\n    return 0;\n  }" ({ "{") (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (iVar1 < 1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar3 = param_2 + 4;" (assignment_expression "piVar3 = param_2 + 4" (identifier "piVar3") (= "=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) (; ";")) (do_statement "do {\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);" (do "do") (compound_statement "{\n      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);\n      if (-1 < iVar2) {\n        return 1;\n      }\n      piVar3 = piVar3 + 6;\n    }" ({ "{") (expression_statement "iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);" (assignment_expression "iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3)" (identifier "iVar2") (= "=") (call_expression "FUN_001114c6(param_1,*(undefined8 *)piVar3)" (identifier "FUN_001114c6") (argument_list "(param_1,*(undefined8 *)piVar3)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)piVar3" (* "*") (cast_expression "(undefined8 *)piVar3" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar3"))) () ")")))) (; ";")) (if_statement "if (-1 < iVar2) {\n        return 1;\n      }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "piVar3 = piVar3 + 6;" (assignment_expression "piVar3 = piVar3 + 6" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 6" (identifier "piVar3") (+ "+") (number_literal "6"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10)" (( "(") (binary_expression "piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10" (identifier "piVar3") (!= "!=") (binary_expression "param_2 + (ulong)(iVar1 - 1) * 6 + 10" (binary_expression "param_2 + (ulong)(iVar1 - 1) * 6" (identifier "param_2") (+ "+") (binary_expression "(ulong)(iVar1 - 1) * 6" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 - 1)" (( "(") (binary_expression "iVar1 - 1" (identifier "iVar1") (- "-") (number_literal "1")) () ")"))) (* "*") (number_literal "6"))) (+ "+") (number_literal "10"))) () ")")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int function_1(type_1 *var_1,type_2 *var_2)

{
  int var_3;
  int var_5;
  char **var_6;
  
  if ((var_1 != (type_1 *)0x0) && (var_2 != (type_2 *)0x0)) {
    var_3 = var_2->nExpr;
    if (var_3 < 1) {
      return 0;
    }
    var_6 = &var_2->a[0].zEName;
    do {
      var_5 = var_4(var_1,*var_6);
      if (-1 < var_5) {
        return 1;
      }
      var_6 = var_6 + 3;
    } while ((type_3 *)var_6 != var_2[1].a + (var_3 - 1));
    return 0;
  }
  return 1;
}


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

undefined8 MASKED(long param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  if ((param_1 != 0) && (param_2 != (int *)0x0)) {
    iVar1 = *param_2;
    if (iVar1 < 1) {
      return 0;
    }
    piVar3 = param_2 + 4;
    do {
      iVar2 = FUN_001114c6(param_1,*(undefined8 *)piVar3);
      if (-1 < iVar2) {
        return 1;
      }
      piVar3 = piVar3 + 6;
    } while (piVar3 != param_2 + (ulong)(iVar1 - 1) * 6 + 10);
    return 0;
  }
  return 1;
}

