package o;

import java.util.Iterator;
import java.util.NoSuchElementException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.qo0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2276qo0 implements Iterator {
    public final /* synthetic */ int l;
    public int m = 0;
    public final /* synthetic */ Object n;

    public /* synthetic */ C2276qo0(int i, Object obj) {
        this.l = i;
        this.n = obj;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        switch (this.l) {
            case 0:
                if (this.m < ((C2560to0) this.n).l.length()) {
                }
                break;
            case 1:
                if (this.m < ((C2560to0) this.n).l.length()) {
                }
                break;
            default:
                if (this.m < ((Pn0) this.n).l()) {
                }
                break;
        }
        return false;
    }

    @Override // java.util.Iterator
    public final /* synthetic */ Object next() {
        switch (this.l) {
            case 0:
                String str = ((C2560to0) this.n).l;
                int i = this.m;
                if (i >= str.length()) {
                    throw new NoSuchElementException();
                }
                this.m = i + 1;
                return new C2560to0(String.valueOf(i));
            case 1:
                C2560to0 c2560to0 = (C2560to0) this.n;
                String str2 = c2560to0.l;
                int i2 = this.m;
                if (i2 >= str2.length()) {
                    throw new NoSuchElementException();
                }
                this.m = i2 + 1;
                return new C2560to0(String.valueOf(c2560to0.l.charAt(i2)));
            default:
                Pn0 pn0 = (Pn0) this.n;
                if (this.m < pn0.l()) {
                    int i3 = this.m;
                    this.m = i3 + 1;
                    return pn0.m(i3);
                }
                int i4 = this.m;
                StringBuilder sb = new StringBuilder(String.valueOf(i4).length() + 21);
                sb.append("Out of bounds index: ");
                sb.append(i4);
                throw new NoSuchElementException(sb.toString());
        }
    }
}
