package gnu.trove; import java.util.ConcurrentModificationException; /* loaded from: classes2.dex */ public class TObjectLongIterator extends TIterator { private final TObjectLongHashMap d; public TObjectLongIterator(TObjectLongHashMap tObjectLongHashMap) { super(tObjectLongHashMap); this.d = tObjectLongHashMap; } @Override // gnu.trove.TIterator protected final int nextIndex() { int i; if (this.b != this.a.size()) { throw new ConcurrentModificationException(); } Object[] objArr = this.d._set; int i2 = this.c; while (true) { i = i2 - 1; if (i2 <= 0 || !(objArr[i] == null || objArr[i] == TObjectHash.REMOVED)) { break; } i2 = i; } return i; } }