package a.i.b.a.c.d.a.c;

import a.a.v;
import a.d;
import a.f;
import a.f.b.j;
import a.i.b.a.c.b.ac;
import a.i.b.a.c.d.a.c.a.h;
import a.i.b.a.c.d.a.e.t;
import a.i.b.a.c.f.b;
import a.i.b.a.c.k.a;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.util.Collection;
import java.util.List;

public final class g implements ac {
    final h Bnn;
    private final a<b, h> Bnq = this.Bnn.Bnv.Baf.eke();

    public g(b bVar) {
        j.p(bVar, "components");
        AppMethodBeat.i(119839);
        this.Bnn = new h(bVar, (m) m.a.BnF, (f) new d(null));
        AppMethodBeat.o(119839);
    }

    public final /* synthetic */ Collection a(b bVar, a.f.a.b bVar2) {
        AppMethodBeat.i(119838);
        j.p(bVar, "fqName");
        j.p(bVar2, "nameFilter");
        h l = l(bVar);
        List list = l != null ? (List) l.Bor.invoke() : null;
        if (list == null) {
            list = (List) v.AUP;
        }
        Collection collection = list;
        AppMethodBeat.o(119838);
        return collection;
    }

    private final h l(b bVar) {
        AppMethodBeat.i(119836);
        t a = this.Bnn.Bnv.BmR.a(bVar);
        j.o(a, "c.components.finder.find…ge(fqName) ?: return null");
        h hVar = (h) this.Bnq.b(bVar, (a.f.a.a) new a(this, a));
        AppMethodBeat.o(119836);
        return hVar;
    }

    public final List<h> h(b bVar) {
        AppMethodBeat.i(119837);
        j.p(bVar, "fqName");
        List dm = a.a.j.dm(l(bVar));
        AppMethodBeat.o(119837);
        return dm;
    }
}
