package v4;

import com.google.android.gms.internal.atv_ads_framework.i1;
import java.util.Iterator;

/* JADX INFO: loaded from: classes.dex */
public final class a implements Iterator {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f33665a = 1;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Iterable f33667c;

    public a(i1 i1Var) {
        this.f33667c = i1Var;
        this.f33666b = i1Var.f19936a.iterator();
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        switch (this.f33665a) {
            case 0:
                if (this.f33666b == null) {
                    this.f33666b = this.f33667c.iterator();
                }
                break;
        }
        return this.f33666b.hasNext();
    }

    @Override // java.util.Iterator
    public final Object next() {
        switch (this.f33665a) {
            case 0:
                if (this.f33666b == null) {
                    this.f33666b = this.f33667c.iterator();
                }
                return this.f33666b.next();
            default:
                return (String) this.f33666b.next();
        }
    }

    @Override // java.util.Iterator
    public final void remove() {
        switch (this.f33665a) {
            case 0:
                if (this.f33666b == null) {
                    this.f33666b = this.f33667c.iterator();
                }
                this.f33666b.remove();
                return;
            default:
                throw new UnsupportedOperationException();
        }
    }

    public a(Iterable iterable) {
        this.f33667c = iterable;
    }
}
