package defpackage;

import java.util.Iterator;

/* JADX INFO: renamed from: ᵶʾᵜ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4797 implements Iterator, InterfaceC5238 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public int f18252;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public boolean f18253;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public int f18254;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final /* synthetic */ int f18255;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final /* synthetic */ Object f18256;

    public C4797(int i) {
        this.f18252 = i;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C4797(C0513 c0513) {
        this(c0513.f2659);
        this.f18255 = 2;
        this.f18256 = c0513;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C4797(C3310 c3310, int i) {
        this(c3310.f15546);
        this.f18255 = i;
        switch (i) {
            case 1:
                this.f18256 = c3310;
                this(c3310.f15546);
                break;
            default:
                this.f18256 = c3310;
                break;
        }
    }

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

    @Override // java.util.Iterator
    public final Object next() {
        Object objM8871;
        if (!hasNext()) {
            C4468.m9518();
            return null;
        }
        int i = this.f18254;
        int i2 = this.f18255;
        Object obj = this.f18256;
        switch (i2) {
            case 0:
                objM8871 = ((C3310) obj).m8871(i);
                break;
            case 1:
                objM8871 = ((C3310) obj).m8866(i);
                break;
            default:
                objM8871 = ((C0513) obj).f2660[i];
                break;
        }
        this.f18254++;
        this.f18253 = true;
        return objM8871;
    }

    @Override // java.util.Iterator
    public final void remove() {
        if (!this.f18253) {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("Call next() before removing an element.");
            return;
        }
        int i = this.f18254 - 1;
        this.f18254 = i;
        int i2 = this.f18255;
        Object obj = this.f18256;
        switch (i2) {
            case 0:
                ((C3310) obj).mo8863(i);
                break;
            case 1:
                ((C3310) obj).mo8863(i);
                break;
            default:
                ((C0513) obj).m1989(i);
                break;
        }
        this.f18252--;
        this.f18253 = false;
    }
}
