package androidx.datastore.preferences.protobuf;

import com.google.android.gms.internal.measurement.S1;
import com.google.crypto.tink.shaded.protobuf.C0741g;
import java.util.Iterator;
import java.util.NoSuchElementException;
import n4.u0;

/* JADX INFO: renamed from: androidx.datastore.preferences.protobuf.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0426d implements Iterator {

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

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

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final int f8063s;

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

    public C0426d(S1 s12) {
        this.f8064t = s12;
        this.f8063s = s12.c();
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        switch (this.f8061q) {
            case u0.f15495q /* 0 */:
                if (this.f8062r < this.f8063s) {
                }
                break;
            case 1:
                if (this.f8062r < this.f8063s) {
                }
                break;
            default:
                if (this.f8062r < this.f8063s) {
                }
                break;
        }
        return false;
    }

    @Override // java.util.Iterator
    public final Object next() {
        switch (this.f8061q) {
            case u0.f15495q /* 0 */:
                int i = this.f8062r;
                if (i >= this.f8063s) {
                    throw new NoSuchElementException();
                }
                this.f8062r = i + 1;
                return Byte.valueOf(((C0429g) this.f8064t).h(i));
            case 1:
                int i5 = this.f8062r;
                if (i5 >= this.f8063s) {
                    throw new NoSuchElementException();
                }
                this.f8062r = i5 + 1;
                return Byte.valueOf(((S1) this.f8064t).b(i5));
            default:
                int i8 = this.f8062r;
                if (i8 >= this.f8063s) {
                    throw new NoSuchElementException();
                }
                this.f8062r = i8 + 1;
                return Byte.valueOf(((C0741g) this.f8064t).i(i8));
        }
    }

    @Override // java.util.Iterator
    public final void remove() {
        switch (this.f8061q) {
            case u0.f15495q /* 0 */:
                throw new UnsupportedOperationException();
            case 1:
                throw new UnsupportedOperationException();
            default:
                throw new UnsupportedOperationException();
        }
    }

    public C0426d(C0429g c0429g) {
        this.f8064t = c0429g;
        this.f8063s = c0429g.size();
    }

    public C0426d(C0741g c0741g) {
        this.f8064t = c0741g;
        this.f8063s = c0741g.size();
    }
}
