package y4;

import java.util.Iterator;
import java.util.NoSuchElementException;
import kotlin.jvm.internal.o;

/* JADX INFO: renamed from: y4.c, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class C3275c extends U1.c implements Iterator, K4.a {

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

    public C3275c(C3277e map, int i6) {
        this.f26211e = i6;
        o.h(map, "map");
        this.f6864d = map;
        this.f6862b = -1;
        this.f6863c = map.f26223k;
        c();
    }

    @Override // java.util.Iterator
    public final Object next() {
        switch (this.f26211e) {
            case 0:
                b();
                int i6 = this.f6861a;
                C3277e c3277e = (C3277e) this.f6864d;
                if (i6 >= c3277e.f26221f) {
                    throw new NoSuchElementException();
                }
                this.f6861a = i6 + 1;
                this.f6862b = i6;
                C3276d c3276d = new C3276d(c3277e, i6);
                c();
                return c3276d;
            case 1:
                b();
                int i7 = this.f6861a;
                C3277e c3277e2 = (C3277e) this.f6864d;
                if (i7 >= c3277e2.f26221f) {
                    throw new NoSuchElementException();
                }
                this.f6861a = i7 + 1;
                this.f6862b = i7;
                Object obj = c3277e2.f26216a[i7];
                c();
                return obj;
            default:
                b();
                int i8 = this.f6861a;
                C3277e c3277e3 = (C3277e) this.f6864d;
                if (i8 >= c3277e3.f26221f) {
                    throw new NoSuchElementException();
                }
                this.f6861a = i8 + 1;
                this.f6862b = i8;
                Object[] objArr = c3277e3.f26217b;
                o.e(objArr);
                Object obj2 = objArr[this.f6862b];
                c();
                return obj2;
        }
    }
}
