package F3;

import java.util.Iterator;
import java.util.NoSuchElementException;
import m1.AbstractC2464a;

/* JADX INFO: renamed from: F3.a0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class C0198a0 extends D0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f1530a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Object f1531b;

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Iterator f1533d;

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

    public C0198a0() {
        this.f1530a = 2;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    @Override // java.util.Iterator
    public final boolean hasNext() {
        Object next;
        A4.g.s(this.f1530a != 4);
        int iC = AbstractC2464a.c(this.f1530a);
        if (iC == 0) {
            return true;
        }
        if (iC != 2) {
            this.f1530a = 4;
            switch (this.f1532c) {
                case 0:
                    do {
                        Iterator it = this.f1533d;
                        if (!it.hasNext()) {
                            this.f1530a = 3;
                            next = null;
                        } else {
                            next = it.next();
                        }
                        break;
                    } while (!((E3.k) this.f1534e).apply(next));
                    break;
                default:
                    do {
                        Iterator it2 = this.f1533d;
                        if (!it2.hasNext()) {
                            this.f1530a = 3;
                            next = null;
                        } else {
                            next = it2.next();
                        }
                        break;
                    } while (!((x0) this.f1534e).f1628b.contains(next));
                    break;
            }
            this.f1531b = next;
            if (this.f1530a != 3) {
                this.f1530a = 1;
                return true;
            }
        }
        return false;
    }

    @Override // java.util.Iterator
    public final Object next() {
        if (!hasNext()) {
            throw new NoSuchElementException();
        }
        this.f1530a = 2;
        Object obj = this.f1531b;
        this.f1531b = null;
        return obj;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C0198a0(Iterator it, E3.k kVar) {
        this();
        this.f1532c = 0;
        this.f1533d = it;
        this.f1534e = kVar;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public C0198a0(x0 x0Var) {
        this();
        this.f1532c = 1;
        this.f1534e = x0Var;
        this.f1533d = x0Var.f1627a.iterator();
    }
}
