package defpackage;

import java.util.Iterator;

/* renamed from: ʾᵭ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0316 implements Iterator, InterfaceC3996 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public int f1969;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final /* synthetic */ Object f1970;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public int f1971;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final /* synthetic */ int f1972;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public boolean f1973;

    public C0316(int i) {
        this.f1971 = i;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C0316(C0277 c0277) {
        this(c0277.f1875);
        this.f1972 = 2;
        this.f1970 = c0277;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C0316(C1200 c1200, int i) {
        this(c1200.f10698);
        this.f1972 = i;
        switch (i) {
            case 1:
                this.f1970 = c1200;
                this(c1200.f10698);
                break;
            default:
                this.f1970 = c1200;
                break;
        }
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        return this.f1969 < this.f1971;
    }

    @Override // java.util.Iterator
    public final Object next() {
        Object objM6838;
        if (!hasNext()) {
            C0190.m1427();
            return null;
        }
        int i = this.f1969;
        int i2 = this.f1972;
        Object obj = this.f1970;
        switch (i2) {
            case 0:
                objM6838 = ((C1200) obj).m6838(i);
                break;
            case 1:
                objM6838 = ((C1200) obj).m6842(i);
                break;
            default:
                objM6838 = ((C0277) obj).f1873[i];
                break;
        }
        this.f1969++;
        this.f1973 = true;
        return objM6838;
    }

    @Override // java.util.Iterator
    public final void remove() {
        if (!this.f1973) {
            ᵹˉᵞ.ᵳٴᵶ("Call next() before removing an element.");
            return;
        }
        int i = this.f1969 - 1;
        this.f1969 = i;
        int i2 = this.f1972;
        Object obj = this.f1970;
        switch (i2) {
            case 0:
                ((C1200) obj).mo1308(i);
                break;
            case 1:
                ((C1200) obj).mo1308(i);
                break;
            default:
                ((C0277) obj).m1616(i);
                break;
        }
        this.f1971--;
        this.f1973 = false;
    }
}
