package androidx.datastore.preferences.protobuf;

import com.google.crypto.tink.shaded.protobuf.C1260h;
import java.util.Iterator;
import java.util.NoSuchElementException;

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

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

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

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

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

    public C1015d(C1260h c1260h) {
        this.f11369d = c1260h;
        this.f11368c = c1260h.size();
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        switch (this.f11366a) {
            case 0:
                if (this.f11367b < this.f11368c) {
                }
                break;
            default:
                if (this.f11367b < this.f11368c) {
                }
                break;
        }
        return false;
    }

    @Override // java.util.Iterator
    public final Object next() {
        switch (this.f11366a) {
            case 0:
                int i6 = this.f11367b;
                if (i6 >= this.f11368c) {
                    throw new NoSuchElementException();
                }
                this.f11367b = i6 + 1;
                return Byte.valueOf(((C1018g) this.f11369d).l(i6));
            default:
                int i7 = this.f11367b;
                if (i7 >= this.f11368c) {
                    throw new NoSuchElementException();
                }
                this.f11367b = i7 + 1;
                return Byte.valueOf(((C1260h) this.f11369d).m(i7));
        }
    }

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

    public C1015d(C1018g c1018g) {
        this.f11369d = c1018g;
        this.f11368c = c1018g.size();
    }
}
