
int __regparm3 exprMightBeIndexed2(SrcList *pFrom,Bitmask mPrereq,int *aiCurCol,Expr *pExpr)

{
  int iTab;
  Index *pIVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = 0;
  if (pExpr != (Expr *)0x0 || (uint)-(int)pExpr < (uint)((int *)0x1 < aiCurCol)) {
    do {
      aiCurCol = (int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f);
      pExpr = (Expr *)((uint)pExpr >> 1);
      iVar3 = iVar3 + 1;
    } while (pExpr != (Expr *)0x0 || aiCurCol != (int *)0x1);
  }
  iTab = pFrom->a[iVar3].iCursor;
  pIVar1 = (pFrom->a[iVar3].pTab)->pIndex;
  do {
    if (pIVar1 == (Index *)0x0) {
      return 0;
    }
    if ((pIVar1->aColExpr != (ExprList *)0x0) && (pIVar1->nKeyCol != 0)) {
      iVar3 = 0;
      do {
        if ((pIVar1->aiColumn[iVar3] == -2) &&
           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),
           iVar2 == 0)) {
          *(int *)mPrereq = iTab;
          ((int *)mPrereq)[1] = -2;
          return 1;
        }
        iVar3 = iVar3 + 1;
      } while (iVar3 < (int)(uint)pIVar1->nKeyCol);
    }
    pIVar1 = pIVar1->pNext;
  } while( true );
}



undefined4 __regparm3 FUN_0007c880(int param_1,uint param_2,uint param_3,undefined4 *param_4)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar3 = 0;
  if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {
    do {
      param_2 = param_2 >> 1 | param_3 << 0x1f;
      param_3 = param_3 >> 1;
      iVar3 = iVar3 + 1;
    } while (param_3 != 0 || param_2 != 1);
  }
  param_1 = iVar3 * 0x44 + param_1;
  uVar1 = *(undefined4 *)(param_1 + 0x30);
  iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);
  do {
    if (iVar3 == 0) {
      return 0;
    }
    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {
      iVar4 = 0;
      do {
        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&
           (iVar2 = FUN_0007c800(), iVar2 == 0)) {
          *param_4 = uVar1;
          param_4[1] = 0xfffffffe;
          return 1;
        }
        iVar4 = iVar4 + 1;
      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));
    }
    iVar3 = *(int *)(iVar3 + 0x14);
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,0x1
SUB ESP,0xc
CMP EBX,EDX
MOV EBX,0x0
SBB EBX,ECX
MOV EDI,dword ptr [ESP + 0x24]
MOV EBX,0x0
JNC 0x0007c8b4
SHRD EDX,ECX,0x1
SHR ECX,0x1
ADD EBX,0x1
MOV ESI,EDX
MOV EBP,ECX
XOR ESI,0x1
OR EBP,ESI
JNZ 0x0007c8a0
IMUL EBX,EBX,0x44
ADD EBX,EAX
MOV EAX,dword ptr [EBX + 0x18]
MOV EBP,dword ptr [EBX + 0x30]
MOV ESI,dword ptr [EAX + 0x8]
TEST ESI,ESI
JZ 0x0007c937
MOV ECX,dword ptr [ESI + 0x28]
TEST ECX,ECX
JZ 0x0007c930
CMP word ptr [ESI + 0x32],0x0
JZ 0x0007c930
XOR EBX,EBX
JMP 0x0007c8eb
MOVZX EAX,word ptr [ESI + 0x32]
ADD EBX,0x1
CMP EAX,EBX
JLE 0x0007c930
MOV EAX,dword ptr [ESI + 0x4]
CMP word ptr [EAX + EBX*0x2],-0x2
JNZ 0x0007c8e0
MOV EDX,dword ptr [ESI + 0x28]
LEA EAX,[EBX + EBX*0x4]
MOV ECX,EBP
LEA EAX,[EDX + EAX*0x4]
MOV EDX,dword ptr [EAX + 0x4]
MOV EAX,EDI
CALL 0x0007c800
TEST EAX,EAX
JNZ 0x0007c8e0
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [EAX],EBP
MOV dword ptr [EAX + 0x4],0xfffffffe
ADD ESP,0xc
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,dword ptr [ESI + 0x14]
TEST ESI,ESI
JNZ 0x0007c8c6
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "undefined4 __regparm3 FUN_0007c880(int param_1,uint param_2,uint param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = 0;\n  if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }\n  param_1 = iVar3 * 0x44 + param_1;\n  uVar1 = *(undefined4 *)(param_1 + 0x30);\n  iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);\n  do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0007c880(int param_1,uint param_2,uint param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = 0;\n  if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }\n  param_1 = iVar3 * 0x44 + param_1;\n  uVar1 = *(undefined4 *)(param_1 + 0x30);\n  iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);\n  do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0007c880(int param_1,uint param_2,uint param_3,undefined4 *param_4)" identifier (parameter_list "(int param_1,uint param_2,uint param_3,undefined4 *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = 0;\n  if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }\n  param_1 = iVar3 * 0x44 + param_1;\n  uVar1 = *(undefined4 *)(param_1 + 0x30);\n  iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);\n  do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }" if (parenthesized_expression "(param_3 != 0 || -param_3 < (uint)(1 < param_2))" ( (binary_expression "param_3 != 0 || -param_3 < (uint)(1 < param_2)" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "-param_3 < (uint)(1 < param_2)" (unary_expression "-param_3" - identifier) < (call_expression "(uint)(1 < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) ))))) )) (compound_statement "{\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }" { (do_statement "do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);" do (compound_statement "{\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "param_2 = param_2 >> 1 | param_3 << 0x1f;" (assignment_expression "param_2 = param_2 >> 1 | param_3 << 0x1f" identifier = (binary_expression "param_2 >> 1 | param_3 << 0x1f" (binary_expression "param_2 >> 1" identifier >> number_literal) | (binary_expression "param_3 << 0x1f" identifier << number_literal))) ;) (expression_statement "param_3 = param_3 >> 1;" (assignment_expression "param_3 = param_3 >> 1" identifier = (binary_expression "param_3 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_3 != 0 || param_2 != 1)" ( (binary_expression "param_3 != 0 || param_2 != 1" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "param_2 != 1" identifier != number_literal)) )) ;) })) (expression_statement "param_1 = iVar3 * 0x44 + param_1;" (assignment_expression "param_1 = iVar3 * 0x44 + param_1" identifier = (binary_expression "iVar3 * 0x44 + param_1" (binary_expression "iVar3 * 0x44" identifier * number_literal) + identifier)) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x30)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);" (assignment_expression "iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x18) + 8)" * (cast_expression "(int *)(*(int *)(param_1 + 0x18) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 8)" ( (binary_expression "*(int *)(param_1 + 0x18) + 8" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) ))))) ;) (do_statement "do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );" do (compound_statement "{\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  }" { (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }" if (parenthesized_expression "((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0))" ( (binary_expression "(*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)" (parenthesized_expression "(*(int *)(iVar3 + 0x28) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x28) != 0" (pointer_expression "*(int *)(iVar3 + 0x28)" * (cast_expression "(int *)(iVar3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x28)" ( (binary_expression "iVar3 + 0x28" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(short *)(iVar3 + 0x32) != 0)" ( (binary_expression "*(short *)(iVar3 + 0x32) != 0" (pointer_expression "*(short *)(iVar3 + 0x32)" * (cast_expression "(short *)(iVar3 + 0x32)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x32)" ( (binary_expression "iVar3 + 0x32" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));" do (compound_statement "{\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      }" { (if_statement "if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }" if (parenthesized_expression "((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0))" ( (binary_expression "(*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)" (parenthesized_expression "(*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2)" ( (binary_expression "*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2" (pointer_expression "*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2)" * (cast_expression "(short *)(*(int *)(iVar3 + 4) + iVar4 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 4) + iVar4 * 2)" ( (binary_expression "*(int *)(iVar3 + 4) + iVar4 * 2" (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) + (binary_expression "iVar4 * 2" identifier * number_literal)) )))) == number_literal) )) && (parenthesized_expression "(iVar2 = FUN_0007c800(), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_0007c800(), iVar2 == 0" (assignment_expression "iVar2 = FUN_0007c800()" identifier = (call_expression "FUN_0007c800()" identifier (argument_list "()" ( )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }" { (expression_statement "*param_4 = uVar1;" (assignment_expression "*param_4 = uVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "param_4[1] = 0xfffffffe;" (assignment_expression "param_4[1] = 0xfffffffe" (subscript_expression "param_4[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32))" ( (binary_expression "iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32)" identifier < (binary_expression "(int)(uint)*(ushort *)(iVar3 + 0x32)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(ushort *)(iVar3 + 0x32)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x32)" ( (binary_expression "iVar3 + 0x32" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar3 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int __regparm3 exprMightBeIndexed2(SrcList *pFrom,Bitmask mPrereq,int *aiCurCol,Expr *pExpr)\n\n{\n  int iTab;\n  Index *pIVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  if (pExpr != (Expr *)0x0 || (uint)-(int)pExpr < (uint)((int *)0x1 < aiCurCol)) {\n    do {\n      aiCurCol = (int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f);\n      pExpr = (Expr *)((uint)pExpr >> 1);\n      iVar3 = iVar3 + 1;\n    } while (pExpr != (Expr *)0x0 || aiCurCol != (int *)0x1);\n  }\n  iTab = pFrom->a[iVar3].iCursor;\n  pIVar1 = (pFrom->a[iVar3].pTab)->pIndex;\n  do {\n    if (pIVar1 == (Index *)0x0) {\n      return 0;\n    }\n    if ((pIVar1->aColExpr != (ExprList *)0x0) && (pIVar1->nKeyCol != 0)) {\n      iVar3 = 0;\n      do {\n        if ((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)) {\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < (int)(uint)pIVar1->nKeyCol);\n    }\n    pIVar1 = pIVar1->pNext;\n  } while( true );\n}\n\n" (function_definition "int __regparm3 exprMightBeIndexed2(SrcList *pFrom,Bitmask mPrereq,int *aiCurCol,Expr *pExpr)\n\n{\n  int iTab;\n  Index *pIVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  if (pExpr != (Expr *)0x0 || (uint)-(int)pExpr < (uint)((int *)0x1 < aiCurCol)) {\n    do {\n      aiCurCol = (int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f);\n      pExpr = (Expr *)((uint)pExpr >> 1);\n      iVar3 = iVar3 + 1;\n    } while (pExpr != (Expr *)0x0 || aiCurCol != (int *)0x1);\n  }\n  iTab = pFrom->a[iVar3].iCursor;\n  pIVar1 = (pFrom->a[iVar3].pTab)->pIndex;\n  do {\n    if (pIVar1 == (Index *)0x0) {\n      return 0;\n    }\n    if ((pIVar1->aColExpr != (ExprList *)0x0) && (pIVar1->nKeyCol != 0)) {\n      iVar3 = 0;\n      do {\n        if ((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)) {\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < (int)(uint)pIVar1->nKeyCol);\n    }\n    pIVar1 = pIVar1->pNext;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "exprMightBeIndexed2(SrcList *pFrom,Bitmask mPrereq,int *aiCurCol,Expr *pExpr)" identifier (parameter_list "(SrcList *pFrom,Bitmask mPrereq,int *aiCurCol,Expr *pExpr)" ( (parameter_declaration "SrcList *pFrom" type_identifier (pointer_declarator "*pFrom" * identifier)) , (parameter_declaration "Bitmask mPrereq" type_identifier identifier) , (parameter_declaration "int *aiCurCol" primitive_type (pointer_declarator "*aiCurCol" * identifier)) , (parameter_declaration "Expr *pExpr" type_identifier (pointer_declarator "*pExpr" * identifier)) ))) (compound_statement "{\n  int iTab;\n  Index *pIVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  if (pExpr != (Expr *)0x0 || (uint)-(int)pExpr < (uint)((int *)0x1 < aiCurCol)) {\n    do {\n      aiCurCol = (int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f);\n      pExpr = (Expr *)((uint)pExpr >> 1);\n      iVar3 = iVar3 + 1;\n    } while (pExpr != (Expr *)0x0 || aiCurCol != (int *)0x1);\n  }\n  iTab = pFrom->a[iVar3].iCursor;\n  pIVar1 = (pFrom->a[iVar3].pTab)->pIndex;\n  do {\n    if (pIVar1 == (Index *)0x0) {\n      return 0;\n    }\n    if ((pIVar1->aColExpr != (ExprList *)0x0) && (pIVar1->nKeyCol != 0)) {\n      iVar3 = 0;\n      do {\n        if ((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)) {\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < (int)(uint)pIVar1->nKeyCol);\n    }\n    pIVar1 = pIVar1->pNext;\n  } while( true );\n}" { (declaration "int iTab;" primitive_type identifier ;) (declaration "Index *pIVar1;" type_identifier (pointer_declarator "*pIVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (pExpr != (Expr *)0x0 || (uint)-(int)pExpr < (uint)((int *)0x1 < aiCurCol)) {\n    do {\n      aiCurCol = (int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f);\n      pExpr = (Expr *)((uint)pExpr >> 1);\n      iVar3 = iVar3 + 1;\n    } while (pExpr != (Expr *)0x0 || aiCurCol != (int *)0x1);\n  }" if (parenthesized_expression "(pExpr != (Expr *)0x0 || (uint)-(int)pExpr < (uint)((int *)0x1 < aiCurCol))" ( (binary_expression "pExpr != (Expr *)0x0 || (uint)-(int)pExpr < (uint)((int *)0x1 < aiCurCol)" (binary_expression "pExpr != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) || (binary_expression "(uint)-(int)pExpr < (uint)((int *)0x1 < aiCurCol)" (binary_expression "(uint)-(int)pExpr" (parenthesized_expression "(uint)" ( identifier )) - (cast_expression "(int)pExpr" ( (type_descriptor "int" primitive_type) ) identifier)) < (call_expression "(uint)((int *)0x1 < aiCurCol)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int *)0x1 < aiCurCol)" ( (binary_expression "(int *)0x1 < aiCurCol" (cast_expression "(int *)0x1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) ))))) )) (compound_statement "{\n    do {\n      aiCurCol = (int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f);\n      pExpr = (Expr *)((uint)pExpr >> 1);\n      iVar3 = iVar3 + 1;\n    } while (pExpr != (Expr *)0x0 || aiCurCol != (int *)0x1);\n  }" { (do_statement "do {\n      aiCurCol = (int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f);\n      pExpr = (Expr *)((uint)pExpr >> 1);\n      iVar3 = iVar3 + 1;\n    } while (pExpr != (Expr *)0x0 || aiCurCol != (int *)0x1);" do (compound_statement "{\n      aiCurCol = (int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f);\n      pExpr = (Expr *)((uint)pExpr >> 1);\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "aiCurCol = (int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f);" (assignment_expression "aiCurCol = (int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f)" identifier = (cast_expression "(int *)((uint)aiCurCol >> 1 | (int)pExpr << 0x1f)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)aiCurCol >> 1 | (int)pExpr << 0x1f)" ( (binary_expression "(uint)aiCurCol >> 1 | (int)pExpr << 0x1f" (binary_expression "(uint)aiCurCol >> 1" (cast_expression "(uint)aiCurCol" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) | (binary_expression "(int)pExpr << 0x1f" (cast_expression "(int)pExpr" ( (type_descriptor "int" primitive_type) ) identifier) << number_literal)) )))) ;) (expression_statement "pExpr = (Expr *)((uint)pExpr >> 1);" (assignment_expression "pExpr = (Expr *)((uint)pExpr >> 1)" identifier = (cast_expression "(Expr *)((uint)pExpr >> 1)" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)pExpr >> 1)" ( (binary_expression "(uint)pExpr >> 1" (cast_expression "(uint)pExpr" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pExpr != (Expr *)0x0 || aiCurCol != (int *)0x1)" ( (binary_expression "pExpr != (Expr *)0x0 || aiCurCol != (int *)0x1" (binary_expression "pExpr != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) || (binary_expression "aiCurCol != (int *)0x1" identifier != (cast_expression "(int *)0x1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) ;) })) (expression_statement "iTab = pFrom->a[iVar3].iCursor;" (assignment_expression "iTab = pFrom->a[iVar3].iCursor" identifier = (field_expression "pFrom->a[iVar3].iCursor" (subscript_expression "pFrom->a[iVar3]" (field_expression "pFrom->a" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (expression_statement "pIVar1 = (pFrom->a[iVar3].pTab)->pIndex;" (assignment_expression "pIVar1 = (pFrom->a[iVar3].pTab)->pIndex" identifier = (field_expression "(pFrom->a[iVar3].pTab)->pIndex" (parenthesized_expression "(pFrom->a[iVar3].pTab)" ( (field_expression "pFrom->a[iVar3].pTab" (subscript_expression "pFrom->a[iVar3]" (field_expression "pFrom->a" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier)) ;) (do_statement "do {\n    if (pIVar1 == (Index *)0x0) {\n      return 0;\n    }\n    if ((pIVar1->aColExpr != (ExprList *)0x0) && (pIVar1->nKeyCol != 0)) {\n      iVar3 = 0;\n      do {\n        if ((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)) {\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < (int)(uint)pIVar1->nKeyCol);\n    }\n    pIVar1 = pIVar1->pNext;\n  } while( true );" do (compound_statement "{\n    if (pIVar1 == (Index *)0x0) {\n      return 0;\n    }\n    if ((pIVar1->aColExpr != (ExprList *)0x0) && (pIVar1->nKeyCol != 0)) {\n      iVar3 = 0;\n      do {\n        if ((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)) {\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < (int)(uint)pIVar1->nKeyCol);\n    }\n    pIVar1 = pIVar1->pNext;\n  }" { (if_statement "if (pIVar1 == (Index *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pIVar1 == (Index *)0x0)" ( (binary_expression "pIVar1 == (Index *)0x0" identifier == (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((pIVar1->aColExpr != (ExprList *)0x0) && (pIVar1->nKeyCol != 0)) {\n      iVar3 = 0;\n      do {\n        if ((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)) {\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < (int)(uint)pIVar1->nKeyCol);\n    }" if (parenthesized_expression "((pIVar1->aColExpr != (ExprList *)0x0) && (pIVar1->nKeyCol != 0))" ( (binary_expression "(pIVar1->aColExpr != (ExprList *)0x0) && (pIVar1->nKeyCol != 0)" (parenthesized_expression "(pIVar1->aColExpr != (ExprList *)0x0)" ( (binary_expression "pIVar1->aColExpr != (ExprList *)0x0" (field_expression "pIVar1->aColExpr" identifier -> field_identifier) != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pIVar1->nKeyCol != 0)" ( (binary_expression "pIVar1->nKeyCol != 0" (field_expression "pIVar1->nKeyCol" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n      iVar3 = 0;\n      do {\n        if ((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)) {\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < (int)(uint)pIVar1->nKeyCol);\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)) {\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < (int)(uint)pIVar1->nKeyCol);" do (compound_statement "{\n        if ((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)) {\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }\n        iVar3 = iVar3 + 1;\n      }" { (if_statement "if ((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)) {\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }" if (parenthesized_expression "((pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0))" ( (binary_expression "(pIVar1->aiColumn[iVar3] == -2) &&\n           (iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)" (parenthesized_expression "(pIVar1->aiColumn[iVar3] == -2)" ( (binary_expression "pIVar1->aiColumn[iVar3] == -2" (subscript_expression "pIVar1->aiColumn[iVar3]" (field_expression "pIVar1->aiColumn" identifier -> field_identifier) [ identifier ]) == number_literal) )) && (parenthesized_expression "(iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0)" ( (comma_expression "iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab),\n           iVar2 == 0" (assignment_expression "iVar2 = sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab)" identifier = (call_expression "sqlite3ExprCompareSkip(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab)" identifier (argument_list "(mPrereq._4_4_,pIVar1->aColExpr->a[iVar3].pExpr,iTab)" ( (field_expression "mPrereq._4_4_" identifier . field_identifier) , (field_expression "pIVar1->aColExpr->a[iVar3].pExpr" (subscript_expression "pIVar1->aColExpr->a[iVar3]" (field_expression "pIVar1->aColExpr->a" (field_expression "pIVar1->aColExpr" identifier -> field_identifier) -> field_identifier) [ identifier ]) . field_identifier) , identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          *(int *)mPrereq = iTab;\n          ((int *)mPrereq)[1] = -2;\n          return 1;\n        }" { (expression_statement "*(int *)mPrereq = iTab;" (assignment_expression "*(int *)mPrereq = iTab" (pointer_expression "*(int *)mPrereq" * (cast_expression "(int *)mPrereq" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "((int *)mPrereq)[1] = -2;" (assignment_expression "((int *)mPrereq)[1] = -2" (subscript_expression "((int *)mPrereq)[1]" (parenthesized_expression "((int *)mPrereq)" ( (cast_expression "(int *)mPrereq" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < (int)(uint)pIVar1->nKeyCol)" ( (binary_expression "iVar3 < (int)(uint)pIVar1->nKeyCol" identifier < (cast_expression "(int)(uint)pIVar1->nKeyCol" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)pIVar1->nKeyCol" ( (type_descriptor "uint" type_identifier) ) (field_expression "pIVar1->nKeyCol" identifier -> field_identifier)))) )) ;) })) (expression_statement "pIVar1 = pIVar1->pNext;" (assignment_expression "pIVar1 = pIVar1->pNext" identifier = (field_expression "pIVar1->pNext" identifier -> field_identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 __regparm3 FUN_0007c880(int param_1,uint param_2,uint param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = 0;\n  if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }\n  param_1 = iVar3 * 0x44 + param_1;\n  uVar1 = *(undefined4 *)(param_1 + 0x30);\n  iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);\n  do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0007c880(int param_1,uint param_2,uint param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = 0;\n  if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }\n  param_1 = iVar3 * 0x44 + param_1;\n  uVar1 = *(undefined4 *)(param_1 + 0x30);\n  iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);\n  do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0007c880(int param_1,uint param_2,uint param_3,undefined4 *param_4)" identifier (parameter_list "(int param_1,uint param_2,uint param_3,undefined4 *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = 0;\n  if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }\n  param_1 = iVar3 * 0x44 + param_1;\n  uVar1 = *(undefined4 *)(param_1 + 0x30);\n  iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);\n  do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }" if (parenthesized_expression "(param_3 != 0 || -param_3 < (uint)(1 < param_2))" ( (binary_expression "param_3 != 0 || -param_3 < (uint)(1 < param_2)" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "-param_3 < (uint)(1 < param_2)" (unary_expression "-param_3" - identifier) < (call_expression "(uint)(1 < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) ))))) )) (compound_statement "{\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }" { (do_statement "do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);" do (compound_statement "{\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "param_2 = param_2 >> 1 | param_3 << 0x1f;" (assignment_expression "param_2 = param_2 >> 1 | param_3 << 0x1f" identifier = (binary_expression "param_2 >> 1 | param_3 << 0x1f" (binary_expression "param_2 >> 1" identifier >> number_literal) | (binary_expression "param_3 << 0x1f" identifier << number_literal))) ;) (expression_statement "param_3 = param_3 >> 1;" (assignment_expression "param_3 = param_3 >> 1" identifier = (binary_expression "param_3 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_3 != 0 || param_2 != 1)" ( (binary_expression "param_3 != 0 || param_2 != 1" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "param_2 != 1" identifier != number_literal)) )) ;) })) (expression_statement "param_1 = iVar3 * 0x44 + param_1;" (assignment_expression "param_1 = iVar3 * 0x44 + param_1" identifier = (binary_expression "iVar3 * 0x44 + param_1" (binary_expression "iVar3 * 0x44" identifier * number_literal) + identifier)) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x30)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);" (assignment_expression "iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x18) + 8)" * (cast_expression "(int *)(*(int *)(param_1 + 0x18) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 8)" ( (binary_expression "*(int *)(param_1 + 0x18) + 8" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) ))))) ;) (do_statement "do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );" do (compound_statement "{\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  }" { (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }" if (parenthesized_expression "((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0))" ( (binary_expression "(*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)" (parenthesized_expression "(*(int *)(iVar3 + 0x28) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x28) != 0" (pointer_expression "*(int *)(iVar3 + 0x28)" * (cast_expression "(int *)(iVar3 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x28)" ( (binary_expression "iVar3 + 0x28" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(short *)(iVar3 + 0x32) != 0)" ( (binary_expression "*(short *)(iVar3 + 0x32) != 0" (pointer_expression "*(short *)(iVar3 + 0x32)" * (cast_expression "(short *)(iVar3 + 0x32)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x32)" ( (binary_expression "iVar3 + 0x32" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));" do (compound_statement "{\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      }" { (if_statement "if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }" if (parenthesized_expression "((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0))" ( (binary_expression "(*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)" (parenthesized_expression "(*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2)" ( (binary_expression "*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2" (pointer_expression "*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2)" * (cast_expression "(short *)(*(int *)(iVar3 + 4) + iVar4 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 4) + iVar4 * 2)" ( (binary_expression "*(int *)(iVar3 + 4) + iVar4 * 2" (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) + (binary_expression "iVar4 * 2" identifier * number_literal)) )))) == number_literal) )) && (parenthesized_expression "(iVar2 = FUN_0007c800(), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_0007c800(), iVar2 == 0" (assignment_expression "iVar2 = FUN_0007c800()" identifier = (call_expression "FUN_0007c800()" identifier (argument_list "()" ( )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }" { (expression_statement "*param_4 = uVar1;" (assignment_expression "*param_4 = uVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "param_4[1] = 0xfffffffe;" (assignment_expression "param_4[1] = 0xfffffffe" (subscript_expression "param_4[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32))" ( (binary_expression "iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32)" identifier < (binary_expression "(int)(uint)*(ushort *)(iVar3 + 0x32)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(ushort *)(iVar3 + 0x32)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x32)" ( (binary_expression "iVar3 + 0x32" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar3 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression (unary_expression - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (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) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 __regparm3 FUN_0007c880(int param_1,uint param_2,uint param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = 0;\n  if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }\n  param_1 = iVar3 * 0x44 + param_1;\n  uVar1 = *(undefined4 *)(param_1 + 0x30);\n  iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);\n  do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0007c880(int param_1,uint param_2,uint param_3,undefined4 *param_4)" (identifier "FUN_0007c880") (parameter_list "(int param_1,uint param_2,uint param_3,undefined4 *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar3 = 0;\n  if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }\n  param_1 = iVar3 * 0x44 + param_1;\n  uVar1 = *(undefined4 *)(param_1 + 0x30);\n  iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);\n  do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }" (if "if") (parenthesized_expression "(param_3 != 0 || -param_3 < (uint)(1 < param_2))" (( "(") (binary_expression "param_3 != 0 || -param_3 < (uint)(1 < param_2)" (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "-param_3 < (uint)(1 < param_2)" (unary_expression "-param_3" (- "-") (identifier "param_3")) (< "<") (call_expression "(uint)(1 < param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(1 < param_2)" (( "(") (binary_expression "1 < param_2" (number_literal "1") (< "<") (identifier "param_2")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);\n  }" ({ "{") (do_statement "do {\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    } while (param_3 != 0 || param_2 != 1);" (do "do") (compound_statement "{\n      param_2 = param_2 >> 1 | param_3 << 0x1f;\n      param_3 = param_3 >> 1;\n      iVar3 = iVar3 + 1;\n    }" ({ "{") (expression_statement "param_2 = param_2 >> 1 | param_3 << 0x1f;" (assignment_expression "param_2 = param_2 >> 1 | param_3 << 0x1f" (identifier "param_2") (= "=") (binary_expression "param_2 >> 1 | param_3 << 0x1f" (binary_expression "param_2 >> 1" (identifier "param_2") (>> ">>") (number_literal "1")) (| "|") (binary_expression "param_3 << 0x1f" (identifier "param_3") (<< "<<") (number_literal "0x1f")))) (; ";")) (expression_statement "param_3 = param_3 >> 1;" (assignment_expression "param_3 = param_3 >> 1" (identifier "param_3") (= "=") (binary_expression "param_3 >> 1" (identifier "param_3") (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 != 0 || param_2 != 1)" (( "(") (binary_expression "param_3 != 0 || param_2 != 1" (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "param_2 != 1" (identifier "param_2") (!= "!=") (number_literal "1"))) () ")")) (; ";")) (} "}"))) (expression_statement "param_1 = iVar3 * 0x44 + param_1;" (assignment_expression "param_1 = iVar3 * 0x44 + param_1" (identifier "param_1") (= "=") (binary_expression "iVar3 * 0x44 + param_1" (binary_expression "iVar3 * 0x44" (identifier "iVar3") (* "*") (number_literal "0x44")) (+ "+") (identifier "param_1"))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x30)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);" (assignment_expression "iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x18) + 8)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x18) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + 8" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (do_statement "do {\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  } while( true );" (do "do") (compound_statement "{\n    if (iVar3 == 0) {\n      return 0;\n    }\n    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }\n    iVar3 = *(int *)(iVar3 + 0x14);\n  }" ({ "{") (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }" (if "if") (parenthesized_expression "((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0))" (( "(") (binary_expression "(*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)" (parenthesized_expression "(*(int *)(iVar3 + 0x28) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 0x28) != 0" (pointer_expression "*(int *)(iVar3 + 0x28)" (* "*") (cast_expression "(int *)(iVar3 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x28)" (( "(") (binary_expression "iVar3 + 0x28" (identifier "iVar3") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(short *)(iVar3 + 0x32) != 0)" (( "(") (binary_expression "*(short *)(iVar3 + 0x32) != 0" (pointer_expression "*(short *)(iVar3 + 0x32)" (* "*") (cast_expression "(short *)(iVar3 + 0x32)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x32)" (( "(") (binary_expression "iVar3 + 0x32" (identifier "iVar3") (+ "+") (number_literal "0x32")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      iVar4 = 0;\n      do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));\n    }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));" (do "do") (compound_statement "{\n        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }\n        iVar4 = iVar4 + 1;\n      }" ({ "{") (if_statement "if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)) {\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }" (if "if") (parenthesized_expression "((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0))" (( "(") (binary_expression "(*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&\n           (iVar2 = FUN_0007c800(), iVar2 == 0)" (parenthesized_expression "(*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2)" (( "(") (binary_expression "*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2" (pointer_expression "*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2)" (* "*") (cast_expression "(short *)(*(int *)(iVar3 + 4) + iVar4 * 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar3 + 4) + iVar4 * 2)" (( "(") (binary_expression "*(int *)(iVar3 + 4) + iVar4 * 2" (pointer_expression "*(int *)(iVar3 + 4)" (* "*") (cast_expression "(int *)(iVar3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (+ "+") (binary_expression "iVar4 * 2" (identifier "iVar4") (* "*") (number_literal "2"))) () ")")))) (== "==") (number_literal "-2")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_0007c800(), iVar2 == 0)" (( "(") (comma_expression "iVar2 = FUN_0007c800(), iVar2 == 0" (assignment_expression "iVar2 = FUN_0007c800()" (identifier "iVar2") (= "=") (call_expression "FUN_0007c800()" (identifier "FUN_0007c800") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          *param_4 = uVar1;\n          param_4[1] = 0xfffffffe;\n          return 1;\n        }" ({ "{") (expression_statement "*param_4 = uVar1;" (assignment_expression "*param_4 = uVar1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_4[1] = 0xfffffffe;" (assignment_expression "param_4[1] = 0xfffffffe" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xfffffffe")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32))" (( "(") (binary_expression "iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32)" (identifier "iVar4") (< "<") (binary_expression "(int)(uint)*(ushort *)(iVar3 + 0x32)" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(ushort *)(iVar3 + 0x32)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x32)" (( "(") (binary_expression "iVar3 + 0x32" (identifier "iVar3") (+ "+") (number_literal "0x32")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x14)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pFrom,type_2 mPrereq,int *var_2,type_3 *var_1)

{
  int iTab;
  type_4 *var_4;
  int var_6;
  int var_3;
  
  var_3 = 0;
  if (var_1 != (type_3 *)0x0 || (type_5)-(int)var_1 < (type_5)((int *)0x1 < var_2)) {
    do {
      var_2 = (int *)((type_5)var_2 >> 1 | (int)var_1 << 0x1f);
      var_1 = (type_3 *)((type_5)var_1 >> 1);
      var_3 = var_3 + 1;
    } while (var_1 != (type_3 *)0x0 || var_2 != (int *)0x1);
  }
  iTab = pFrom->a[var_3].iCursor;
  var_4 = (pFrom->a[var_3].pTab)->pIndex;
  do {
    if (var_4 == (type_4 *)0x0) {
      return 0;
    }
    if ((var_4->aColExpr != (type_6 *)0x0) && (var_4->nKeyCol != 0)) {
      var_3 = 0;
      do {
        if ((var_4->aiColumn[var_3] == -2) &&
           (var_6 = var_5(mPrereq._4_4_,var_4->aColExpr->a[var_3].var_1,iTab),
           var_6 == 0)) {
          *(int *)mPrereq = iTab;
          ((int *)mPrereq)[1] = -2;
          return 1;
        }
        var_3 = var_3 + 1;
      } while (var_3 < (int)(type_5)var_4->nKeyCol);
    }
    var_4 = var_4->pNext;
  } while( true );
}


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

undefined4 __regparm3 MASKED(int param_1,uint param_2,uint param_3,undefined4 *param_4)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar3 = 0;
  if (param_3 != 0 || -param_3 < (uint)(1 < param_2)) {
    do {
      param_2 = param_2 >> 1 | param_3 << 0x1f;
      param_3 = param_3 >> 1;
      iVar3 = iVar3 + 1;
    } while (param_3 != 0 || param_2 != 1);
  }
  param_1 = iVar3 * 0x44 + param_1;
  uVar1 = *(undefined4 *)(param_1 + 0x30);
  iVar3 = *(int *)(*(int *)(param_1 + 0x18) + 8);
  do {
    if (iVar3 == 0) {
      return 0;
    }
    if ((*(int *)(iVar3 + 0x28) != 0) && (*(short *)(iVar3 + 0x32) != 0)) {
      iVar4 = 0;
      do {
        if ((*(short *)(*(int *)(iVar3 + 4) + iVar4 * 2) == -2) &&
           (iVar2 = FUN_0007c800(), iVar2 == 0)) {
          *param_4 = uVar1;
          param_4[1] = 0xfffffffe;
          return 1;
        }
        iVar4 = iVar4 + 1;
      } while (iVar4 < (int)(uint)*(ushort *)(iVar3 + 0x32));
    }
    iVar3 = *(int *)(iVar3 + 0x14);
  } while( true );
}

