package dp;

import java.util.Collection;
import java.util.List;
import java.util.Set;
import sm.x0;
import tn.k0;
import tn.o0;

/* loaded from: classes3.dex */
public abstract class a implements o0 {

    /* renamed from: a, reason: collision with root package name */
    private final gp.n f16390a;

    /* renamed from: b, reason: collision with root package name */
    private final v f16391b;

    /* renamed from: c, reason: collision with root package name */
    private final tn.g0 f16392c;

    /* renamed from: d, reason: collision with root package name */
    protected k f16393d;

    /* renamed from: e, reason: collision with root package name */
    private final gp.h f16394e;

    /* renamed from: dp.a$a, reason: collision with other inner class name */
    /* loaded from: classes3.dex */
    static final class C0352a extends kotlin.jvm.internal.v implements dn.l {
        C0352a() {
            super(1);
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final k0 invoke(ro.c fqName) {
            kotlin.jvm.internal.t.g(fqName, "fqName");
            o d10 = a.this.d(fqName);
            if (d10 == null) {
                return null;
            }
            d10.I0(a.this.e());
            return d10;
        }
    }

    public a(gp.n storageManager, v finder, tn.g0 moduleDescriptor) {
        kotlin.jvm.internal.t.g(storageManager, "storageManager");
        kotlin.jvm.internal.t.g(finder, "finder");
        kotlin.jvm.internal.t.g(moduleDescriptor, "moduleDescriptor");
        this.f16390a = storageManager;
        this.f16391b = finder;
        this.f16392c = moduleDescriptor;
        this.f16394e = storageManager.h(new C0352a());
    }

    @Override // tn.l0
    public List a(ro.c fqName) {
        List o10;
        kotlin.jvm.internal.t.g(fqName, "fqName");
        o10 = sm.u.o(this.f16394e.invoke(fqName));
        return o10;
    }

    @Override // tn.o0
    public boolean b(ro.c fqName) {
        kotlin.jvm.internal.t.g(fqName, "fqName");
        return (this.f16394e.k(fqName) ? (k0) this.f16394e.invoke(fqName) : d(fqName)) == null;
    }

    @Override // tn.o0
    public void c(ro.c fqName, Collection packageFragments) {
        kotlin.jvm.internal.t.g(fqName, "fqName");
        kotlin.jvm.internal.t.g(packageFragments, "packageFragments");
        pp.a.a(packageFragments, this.f16394e.invoke(fqName));
    }

    protected abstract o d(ro.c cVar);

    protected final k e() {
        k kVar = this.f16393d;
        if (kVar != null) {
            return kVar;
        }
        kotlin.jvm.internal.t.y("components");
        return null;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public final v f() {
        return this.f16391b;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public final tn.g0 g() {
        return this.f16392c;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public final gp.n h() {
        return this.f16390a;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public final void i(k kVar) {
        kotlin.jvm.internal.t.g(kVar, "<set-?>");
        this.f16393d = kVar;
    }

    @Override // tn.l0
    public Collection n(ro.c fqName, dn.l nameFilter) {
        Set d10;
        kotlin.jvm.internal.t.g(fqName, "fqName");
        kotlin.jvm.internal.t.g(nameFilter, "nameFilter");
        d10 = x0.d();
        return d10;
    }
}
