package defpackage;

import defpackage.dd6;
import defpackage.kw9;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
class iw9 implements Iterator<dd6.a<Object>> {
    public kw9.c a;
    public dd6.a b;
    public final /* synthetic */ kw9 c;

    public iw9(kw9 kw9Var) {
        this.c = kw9Var;
        throw null;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        if (this.a == null) {
            return false;
        }
        if (!this.c.e.c(null)) {
            return true;
        }
        this.a = null;
        return false;
    }

    @Override // java.util.Iterator
    public final dd6.a<Object> next() {
        if (!hasNext()) {
            throw new NoSuchElementException();
        }
        kw9.c cVar = this.a;
        Objects.requireNonNull(cVar);
        int i = kw9.f;
        this.b = new hw9(this.c, cVar);
        this.a.getClass();
        Objects.requireNonNull(null);
        throw null;
    }

    @Override // java.util.Iterator
    public final void remove() {
        if7.p(this.b != null, "no calls to next() since the last call to remove()");
        ((hw9) this.b).a.getClass();
        this.c.bc(null);
        this.b = null;
    }
}
