package o; import java.util.HashSet; import java.util.Iterator; import java.util.Set; /* loaded from: classes.dex */ public final class sMK extends ApF { private final Iterator c; private final Set d = new HashSet(); public sMK(Iterator it) { this.c = it; } @Override // o.ApF public final void b() { do { boolean hasNext = this.c.hasNext(); this.a = hasNext; if (!hasNext) { return; } else { this.b = this.c.next(); } } while (!this.d.add(this.b)); } }