package defpackage;

import java.util.Iterator;

/* renamed from: ᵢᵲᵣ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3298 extends AbstractC5447 {

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final /* synthetic */ Object f12349;

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

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final Iterator f12351;

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

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

    public C3298() {
        super(0);
        this.f12350 = 2;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C3298(Iterator it, InterfaceC3076 interfaceC3076) {
        this();
        this.f12352 = 0;
        this.f12351 = it;
        this.f12349 = interfaceC3076;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C3298(C5274 c5274) {
        this();
        this.f12352 = 1;
        this.f12349 = c5274;
        this.f12351 = c5274.f19738.iterator();
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    @Override // java.util.Iterator
    public final boolean hasNext() {
        Object next;
        ᵛᵾˏ.ᵿʗᵝʽ(this.f12350 != 4);
        int iM4088 = AbstractC1327.m4088(this.f12350);
        if (iM4088 == 0) {
            return true;
        }
        if (iM4088 != 2) {
            this.f12350 = 4;
            int i = this.f12352;
            Object obj = null;
            Object obj2 = this.f12349;
            Iterator it = this.f12351;
            switch (i) {
                case 0:
                    while (it.hasNext()) {
                        next = it.next();
                        if (((InterfaceC3076) obj2).apply(next)) {
                            obj = next;
                            break;
                        }
                    }
                    this.f12350 = 3;
                    break;
                default:
                    while (it.hasNext()) {
                        next = it.next();
                        if (((C5274) obj2).f19737.contains(next)) {
                            obj = next;
                            break;
                        }
                    }
                    this.f12350 = 3;
                    break;
            }
            this.f12353 = obj;
            if (this.f12350 != 3) {
                this.f12350 = 1;
                return true;
            }
        }
        return false;
    }

    @Override // java.util.Iterator
    public final Object next() {
        if (!hasNext()) {
            C0190.m1427();
            return null;
        }
        this.f12350 = 2;
        Object obj = this.f12353;
        this.f12353 = null;
        return obj;
    }
}
