public int func_27256_c(int var1, int var2) {
      int var3 = this.width / 2 - 110;
      int var4 = this.width / 2 + 110;
      int var5 = var2 - this.top - this.field_27261_r + (int)this.amountScrolled - 4;
      int var6 = var5 / this.slotHeight;
      return var1 >= var3 && var1 <= var4 && var6 >= 0 && var5 >= 0 && var6 < this.getSize()?var6:-1;
   }