package com.google.android.gms.internal.ads;

import java.util.ConcurrentModificationException;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public abstract class v92 implements Iterator {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public w92 f17577a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public w92 f17578b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f17579c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ zzhzc f17580d;

    public v92(zzhzc zzhzcVar) {
        Objects.requireNonNull(zzhzcVar);
        this.f17580d = zzhzcVar;
        this.f17577a = zzhzcVar.zzd.f17960d;
        this.f17578b = null;
        this.f17579c = zzhzcVar.zzc;
    }

    public final w92 a() {
        w92 w92Var = this.f17577a;
        zzhzc zzhzcVar = this.f17580d;
        if (w92Var == zzhzcVar.zzd) {
            throw new NoSuchElementException();
        }
        if (zzhzcVar.zzc != this.f17579c) {
            throw new ConcurrentModificationException();
        }
        this.f17577a = w92Var.f17960d;
        this.f17578b = w92Var;
        return w92Var;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        return this.f17577a != this.f17580d.zzd;
    }

    @Override // java.util.Iterator
    public final void remove() {
        w92 w92Var = this.f17578b;
        if (w92Var == null) {
            throw new IllegalStateException();
        }
        zzhzc zzhzcVar = this.f17580d;
        zzhzcVar.b(w92Var, true);
        this.f17578b = null;
        this.f17579c = zzhzcVar.zzc;
    }
}
