package j1;

import java.util.List;
import rm.n0;

/* loaded from: classes.dex */
public final class a extends j1.c {

    /* renamed from: j1.a$a, reason: collision with other inner class name */
    /* loaded from: classes.dex */
    static final class C0498a extends kotlin.jvm.internal.v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ List f23448p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        C0498a(List list) {
            super(1);
            this.f23448p = list;
        }

        public final void a(Object obj) {
            List list = this.f23448p;
            int size = list.size();
            for (int i10 = 0; i10 < size; i10++) {
                ((dn.l) list.get(i10)).invoke(obj);
            }
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a(obj);
            return n0.f34904a;
        }
    }

    /* loaded from: classes.dex */
    static final class b extends kotlin.jvm.internal.v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ dn.l f23449p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ dn.l f23450q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(dn.l lVar, dn.l lVar2) {
            super(1);
            this.f23449p = lVar;
            this.f23450q = lVar2;
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final j1.c invoke(n nVar) {
            int i10;
            synchronized (p.I()) {
                i10 = p.f23521e;
                p.f23521e = i10 + 1;
            }
            return new j1.c(i10, nVar, this.f23449p, this.f23450q);
        }
    }

    /* loaded from: classes.dex */
    static final class c extends kotlin.jvm.internal.v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ dn.l f23451p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(dn.l lVar) {
            super(1);
            this.f23451p = lVar;
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final h invoke(n nVar) {
            int i10;
            synchronized (p.I()) {
                i10 = p.f23521e;
                p.f23521e = i10 + 1;
            }
            return new h(i10, nVar, this.f23451p);
        }
    }

    /* JADX WARN: Illegal instructions before constructor call */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public a(int i10, n nVar) {
        super(i10, nVar, null, r2);
        List list;
        Object F0;
        dn.l lVar;
        synchronized (p.I()) {
            list = p.f23525i;
            F0 = sm.c0.F0(list);
            lVar = (dn.l) F0;
            lVar = lVar == null ? new C0498a(list) : lVar;
        }
    }

    @Override // j1.c
    public l C() {
        throw new IllegalStateException("Cannot apply the global snapshot directly. Call Snapshot.advanceGlobalSnapshot".toString());
    }

    @Override // j1.c
    public j1.c Q(dn.l lVar, dn.l lVar2) {
        k b02;
        b02 = p.b0(new b(lVar, lVar2));
        return (j1.c) b02;
    }

    @Override // j1.c, j1.k
    /* renamed from: T, reason: merged with bridge method [inline-methods] */
    public Void m(k kVar) {
        t.a();
        throw new rm.k();
    }

    @Override // j1.c, j1.k
    /* renamed from: U, reason: merged with bridge method [inline-methods] */
    public Void n(k kVar) {
        t.a();
        throw new rm.k();
    }

    @Override // j1.c, j1.k
    public void d() {
        synchronized (p.I()) {
            q();
            n0 n0Var = n0.f34904a;
        }
    }

    @Override // j1.c, j1.k
    public void o() {
        p.B();
    }

    @Override // j1.c, j1.k
    public k x(dn.l lVar) {
        k b02;
        b02 = p.b0(new c(lVar));
        return b02;
    }
}
