package bo;

import java.util.Collection;

/* loaded from: classes3.dex */
public final class i {

    /* renamed from: a, reason: collision with root package name */
    public static final i f7125a = new i();

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes3.dex */
    public static final class a extends kotlin.jvm.internal.v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final a f7126p = new a();

        a() {
            super(1);
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final Boolean invoke(tn.b it) {
            kotlin.jvm.internal.t.g(it, "it");
            return Boolean.valueOf(i.f7125a.b(it));
        }
    }

    private i() {
    }

    private final boolean c(tn.b bVar) {
        boolean U;
        U = sm.c0.U(g.f7116a.c(), xo.c.h(bVar));
        if (U && bVar.i().isEmpty()) {
            return true;
        }
        if (!qn.g.g0(bVar)) {
            return false;
        }
        Collection e10 = bVar.e();
        kotlin.jvm.internal.t.f(e10, "getOverriddenDescriptors(...)");
        Collection<tn.b> collection = e10;
        if (!collection.isEmpty()) {
            for (tn.b bVar2 : collection) {
                i iVar = f7125a;
                kotlin.jvm.internal.t.d(bVar2);
                if (iVar.b(bVar2)) {
                    return true;
                }
            }
        }
        return false;
    }

    public final String a(tn.b bVar) {
        ro.f fVar;
        kotlin.jvm.internal.t.g(bVar, "<this>");
        qn.g.g0(bVar);
        tn.b f10 = xo.c.f(xo.c.t(bVar), false, a.f7126p, 1, null);
        if (f10 == null || (fVar = (ro.f) g.f7116a.a().get(xo.c.l(f10))) == null) {
            return null;
        }
        return fVar.e();
    }

    public final boolean b(tn.b callableMemberDescriptor) {
        kotlin.jvm.internal.t.g(callableMemberDescriptor, "callableMemberDescriptor");
        if (g.f7116a.d().contains(callableMemberDescriptor.getName())) {
            return c(callableMemberDescriptor);
        }
        return false;
    }
}
