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

import d5.AbstractC0844a;
import java.util.Iterator;
import java.util.NoSuchElementException;

/* JADX INFO: renamed from: com.google.android.gms.internal.measurement.p, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0681p implements Iterator {

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final /* synthetic */ int f9939q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public int f9940r = 0;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ Object f9941s;

    public /* synthetic */ C0681p(int i, Object obj) {
        this.f9939q = i;
        this.f9941s = obj;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        switch (this.f9939q) {
            case n4.u0.f15495q /* 0 */:
                if (this.f9940r < ((C0686q) this.f9941s).f9944q.length()) {
                }
                break;
            case 1:
                if (this.f9940r < ((C0686q) this.f9941s).f9944q.length()) {
                }
                break;
            default:
                if (this.f9940r < ((C0621d) this.f9941s).l()) {
                }
                break;
        }
        return false;
    }

    @Override // java.util.Iterator
    public final /* bridge */ /* synthetic */ Object next() {
        switch (this.f9939q) {
            case n4.u0.f15495q /* 0 */:
                int i = this.f9940r;
                if (i >= ((C0686q) this.f9941s).f9944q.length()) {
                    throw new NoSuchElementException();
                }
                this.f9940r = i + 1;
                return new C0686q(String.valueOf(i));
            case 1:
                int i5 = this.f9940r;
                C0686q c0686q = (C0686q) this.f9941s;
                if (i5 >= c0686q.f9944q.length()) {
                    throw new NoSuchElementException();
                }
                this.f9940r = i5 + 1;
                return new C0686q(String.valueOf(c0686q.f9944q.charAt(i5)));
            default:
                int i8 = this.f9940r;
                C0621d c0621d = (C0621d) this.f9941s;
                if (i8 >= c0621d.l()) {
                    throw new NoSuchElementException(AbstractC0844a.j("Out of bounds index: ", this.f9940r));
                }
                int i9 = this.f9940r;
                this.f9940r = i9 + 1;
                return c0621d.n(i9);
        }
    }
}
