package tn;

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

    /* renamed from: a, reason: collision with root package name */
    private final e f36432a;

    /* renamed from: b, reason: collision with root package name */
    private final dn.l f36433b;

    /* renamed from: c, reason: collision with root package name */
    private final kotlin.reflect.jvm.internal.impl.types.checker.g f36434c;

    /* renamed from: d, reason: collision with root package name */
    private final gp.i f36435d;

    /* renamed from: f, reason: collision with root package name */
    static final /* synthetic */ kn.l[] f36431f = {kotlin.jvm.internal.p0.h(new kotlin.jvm.internal.g0(kotlin.jvm.internal.p0.b(x0.class), "scopeForOwnerModule", "getScopeForOwnerModule()Lorg/jetbrains/kotlin/resolve/scopes/MemberScope;"))};

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

    /* loaded from: classes3.dex */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(kotlin.jvm.internal.k kVar) {
            this();
        }

        public final x0 a(e classDescriptor, gp.n storageManager, kotlin.reflect.jvm.internal.impl.types.checker.g kotlinTypeRefinerForOwnerModule, dn.l scopeFactory) {
            kotlin.jvm.internal.t.g(classDescriptor, "classDescriptor");
            kotlin.jvm.internal.t.g(storageManager, "storageManager");
            kotlin.jvm.internal.t.g(kotlinTypeRefinerForOwnerModule, "kotlinTypeRefinerForOwnerModule");
            kotlin.jvm.internal.t.g(scopeFactory, "scopeFactory");
            return new x0(classDescriptor, storageManager, scopeFactory, kotlinTypeRefinerForOwnerModule, null);
        }
    }

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

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ kotlin.reflect.jvm.internal.impl.types.checker.g f36437q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(kotlin.reflect.jvm.internal.impl.types.checker.g gVar) {
            super(0);
            this.f36437q = gVar;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final ap.h invoke() {
            return (ap.h) x0.this.f36433b.invoke(this.f36437q);
        }
    }

    /* loaded from: classes3.dex */
    static final class c extends kotlin.jvm.internal.v implements dn.a {
        c() {
            super(0);
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final ap.h invoke() {
            return (ap.h) x0.this.f36433b.invoke(x0.this.f36434c);
        }
    }

    public /* synthetic */ x0(e eVar, gp.n nVar, dn.l lVar, kotlin.reflect.jvm.internal.impl.types.checker.g gVar, kotlin.jvm.internal.k kVar) {
        this(eVar, nVar, lVar, gVar);
    }

    private final ap.h d() {
        return (ap.h) gp.m.a(this.f36435d, this, f36431f[0]);
    }

    public final ap.h c(kotlin.reflect.jvm.internal.impl.types.checker.g kotlinTypeRefiner) {
        kotlin.jvm.internal.t.g(kotlinTypeRefiner, "kotlinTypeRefiner");
        if (!kotlinTypeRefiner.d(xo.c.p(this.f36432a))) {
            return d();
        }
        hp.d1 j10 = this.f36432a.j();
        kotlin.jvm.internal.t.f(j10, "getTypeConstructor(...)");
        return !kotlinTypeRefiner.e(j10) ? d() : kotlinTypeRefiner.c(this.f36432a, new b(kotlinTypeRefiner));
    }

    private x0(e eVar, gp.n nVar, dn.l lVar, kotlin.reflect.jvm.internal.impl.types.checker.g gVar) {
        this.f36432a = eVar;
        this.f36433b = lVar;
        this.f36434c = gVar;
        this.f36435d = nVar.b(new c());
    }
}
