package hq;

import jq.e1;
import kotlin.jvm.internal.t;

/* loaded from: classes3.dex */
public abstract class b {
    public static final kn.d a(e eVar) {
        t.g(eVar, "<this>");
        if (eVar instanceof e1) {
            return a(((e1) eVar).b());
        }
        return null;
    }

    public static final e b(mq.b bVar, e descriptor) {
        fq.b c10;
        t.g(bVar, "<this>");
        t.g(descriptor, "descriptor");
        kn.d a10 = a(descriptor);
        if (a10 == null || (c10 = mq.b.c(bVar, a10, null, 2, null)) == null) {
            return null;
        }
        return c10.getDescriptor();
    }
}
