package defpackage;

import java.util.Iterator;

/* JADX INFO: renamed from: ˏˀʚ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1832 extends AbstractC0228 {

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

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

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

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final Iterator f7288;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public final /* synthetic */ Object f7289;

    public C1832() {
        super(0);
        this.f7286 = 2;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C1832(Iterator it, InterfaceC0682 interfaceC0682) {
        this();
        this.f7287 = 0;
        this.f7288 = it;
        this.f7289 = interfaceC0682;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C1832(C3595 c3595) {
        this();
        this.f7287 = 1;
        this.f7289 = c3595;
        this.f7288 = c3595.f13699.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.f7286 != 4);
        int iM8218 = AbstractC3653.m8218(this.f7286);
        if (iM8218 == 0) {
            return true;
        }
        if (iM8218 != 2) {
            this.f7286 = 4;
            int i = this.f7287;
            Object obj = null;
            Object obj2 = this.f7289;
            Iterator it = this.f7288;
            switch (i) {
                case 0:
                    while (it.hasNext()) {
                        next = it.next();
                        if (((InterfaceC0682) obj2).apply(next)) {
                            obj = next;
                            break;
                        }
                    }
                    this.f7286 = 3;
                    break;
                default:
                    while (it.hasNext()) {
                        next = it.next();
                        if (((C3595) obj2).f13700.contains(next)) {
                            obj = next;
                            break;
                        }
                    }
                    this.f7286 = 3;
                    break;
            }
            this.f7285 = obj;
            if (this.f7286 != 3) {
                this.f7286 = 1;
                return true;
            }
        }
        return false;
    }

    @Override // java.util.Iterator
    public final Object next() {
        if (!hasNext()) {
            C4468.m9518();
            return null;
        }
        this.f7286 = 2;
        Object obj = this.f7285;
        this.f7285 = null;
        return obj;
    }
}
