package l0;

import d0.n;
import y0.e3;

/* loaded from: classes.dex */
public final class a0 {

    /* renamed from: a, reason: collision with root package name */
    private final int f26719a = 1;

    /* renamed from: b, reason: collision with root package name */
    private final int f26720b = 2;

    /* renamed from: c, reason: collision with root package name */
    private final int f26721c = 4;

    /* renamed from: d, reason: collision with root package name */
    private final y0.n1 f26722d = e3.a(0);

    /* loaded from: classes.dex */
    static final class a implements wp.f {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ androidx.collection.e0 f26723p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ a0 f26724q;

        a(androidx.collection.e0 e0Var, a0 a0Var) {
            this.f26723p = e0Var;
            this.f26724q = a0Var;
        }

        @Override // wp.f
        /* renamed from: b, reason: merged with bridge method [inline-methods] */
        public final Object emit(d0.i iVar, vm.d dVar) {
            int i10;
            if (iVar instanceof d0.g ? true : iVar instanceof d0.d ? true : iVar instanceof n.b) {
                this.f26723p.e(iVar);
            } else if (iVar instanceof d0.h) {
                this.f26723p.h(((d0.h) iVar).a());
            } else if (iVar instanceof d0.e) {
                this.f26723p.h(((d0.e) iVar).a());
            } else if (iVar instanceof n.c) {
                this.f26723p.h(((n.c) iVar).a());
            } else if (iVar instanceof n.a) {
                this.f26723p.h(((n.a) iVar).a());
            }
            androidx.collection.e0 e0Var = this.f26723p;
            a0 a0Var = this.f26724q;
            Object[] objArr = e0Var.f1343a;
            int i11 = e0Var.f1344b;
            int i12 = 0;
            for (int i13 = 0; i13 < i11; i13++) {
                d0.i iVar2 = (d0.i) objArr[i13];
                if (iVar2 instanceof d0.g) {
                    i10 = a0Var.f26720b;
                } else if (iVar2 instanceof d0.d) {
                    i10 = a0Var.f26719a;
                } else if (iVar2 instanceof n.b) {
                    i10 = a0Var.f26721c;
                }
                i12 |= i10;
            }
            this.f26724q.f26722d.i(i12);
            return rm.n0.f34904a;
        }
    }

    public final Object e(d0.j jVar, vm.d dVar) {
        Object f10;
        Object collect = jVar.a().collect(new a(new androidx.collection.e0(0, 1, null), this), dVar);
        f10 = wm.d.f();
        return collect == f10 ? collect : rm.n0.f34904a;
    }

    public final boolean f() {
        return (this.f26719a & this.f26722d.d()) != 0;
    }

    public final boolean g() {
        return (this.f26720b & this.f26722d.d()) != 0;
    }

    public final boolean h() {
        return (this.f26721c & this.f26722d.d()) != 0;
    }
}
