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

import a.aa;
import a.f.a.a;
import a.f.b.j;
import a.f.b.t;
import a.f.b.v;
import a.i.b.a.c.b.am;
import a.i.b.a.c.b.aq;
import a.i.b.a.c.b.az;
import a.i.b.a.c.b.b;
import a.i.b.a.c.b.b$a;
import a.i.b.a.c.b.d;
import a.i.b.a.c.b.l;
import a.i.b.a.c.b.m;
import a.i.b.a.c.b.o;
import a.i.b.a.c.b.w;
import a.i.b.a.c.f.f;
import a.i.b.a.c.k.g;
import a.i.b.a.c.k.i;
import a.i.b.a.c.l.au;
import a.i.k;
import com.google.firebase.analytics.FirebaseAnalytics$b;
import com.tencent.matrix.trace.core.AppMethodBeat;

public final class ag extends p implements af {
    public static final a Bjq = new a((byte) 0);
    static final /* synthetic */ k[] eQB = new k[]{(k) v.a(new t(v.aN(ag.class), "withDispatchReceiver", "getWithDispatchReceiver()Lorg/jetbrains/kotlin/descriptors/impl/TypeAliasConstructorDescriptor;"))};
    final i Baf;
    private final g Bjn;
    private d Bjo;
    final aq Bjp;

    static {
        AppMethodBeat.i(119592);
        AppMethodBeat.o(119592);
    }

    private ag(i iVar, aq aqVar, d dVar, af afVar, a.i.b.a.c.b.a.g gVar, b$a b_a, am amVar) {
        super((l) aqVar, (a.i.b.a.c.b.t) afVar, gVar, f.avZ("<init>"), b_a, amVar);
        AppMethodBeat.i(119608);
        this.Baf = iVar;
        this.Bjp = aqVar;
        this.BhW = this.Bjp.dYl();
        this.Bjn = this.Baf.j((a) new b(this, dVar));
        this.Bjo = dVar;
        AppMethodBeat.o(119608);
    }

    public /* synthetic */ ag(i iVar, aq aqVar, d dVar, af afVar, a.i.b.a.c.b.a.g gVar, b$a b_a, am amVar, byte b) {
        this(iVar, aqVar, dVar, afVar, gVar, b_a, amVar);
    }

    public final /* synthetic */ b a(l lVar, w wVar, az azVar, b$a b_a) {
        AppMethodBeat.i(119605);
        b bVar = (b) d(lVar, wVar, azVar, b_a, false);
        AppMethodBeat.o(119605);
        return bVar;
    }

    public final /* synthetic */ p a(l lVar, a.i.b.a.c.b.t tVar, b$a b_a, f fVar, a.i.b.a.c.b.a.g gVar, am amVar) {
        Object obj = 1;
        AppMethodBeat.i(119607);
        j.p(lVar, "newOwner");
        j.p(b_a, "kind");
        j.p(gVar, "annotations");
        j.p(amVar, FirebaseAnalytics$b.SOURCE);
        Object obj2 = (b_a == b$a.DECLARATION || b_a == b$a.SYNTHESIZED) ? 1 : null;
        Throwable assertionError;
        if (aa.AUz && obj2 == null) {
            assertionError = new AssertionError("Creating a type alias constructor that is not a declaration: \ncopy from: " + this + "\nnewOwner: " + lVar + "\nkind: " + b_a);
            AppMethodBeat.o(119607);
            throw assertionError;
        }
        if (fVar != null) {
            obj = null;
        }
        if (aa.AUz && obj == null) {
            assertionError = new AssertionError("Renaming type alias constructor: ".concat(String.valueOf(this)));
            AppMethodBeat.o(119607);
            throw assertionError;
        }
        p pVar = (p) new ag(this.Baf, this.Bjp, this.Bjo, (af) this, gVar, b$a.DECLARATION, amVar);
        AppMethodBeat.o(119607);
        return pVar;
    }

    public final /* synthetic */ a.i.b.a.c.b.k b(au auVar) {
        AppMethodBeat.i(119603);
        a.i.b.a.c.b.k kVar = (a.i.b.a.c.b.k) i(auVar);
        AppMethodBeat.o(119603);
        return kVar;
    }

    public final /* synthetic */ a.i.b.a.c.b.t b(l lVar, w wVar, az azVar, b$a b_a, boolean z) {
        AppMethodBeat.i(119606);
        a.i.b.a.c.b.t tVar = (a.i.b.a.c.b.t) d(lVar, wVar, azVar, b_a, z);
        AppMethodBeat.o(119606);
        return tVar;
    }

    public final /* synthetic */ a.i.b.a.c.b.t c(au auVar) {
        AppMethodBeat.i(119602);
        a.i.b.a.c.b.t tVar = (a.i.b.a.c.b.t) i(auVar);
        AppMethodBeat.o(119602);
        return tVar;
    }

    public final /* synthetic */ a.i.b.a.c.b.a dYU() {
        AppMethodBeat.i(119597);
        a.i.b.a.c.b.a aVar = (a.i.b.a.c.b.a) eaM();
        AppMethodBeat.o(119597);
        return aVar;
    }

    public final /* synthetic */ b dYY() {
        AppMethodBeat.i(119598);
        b bVar = (b) eaM();
        AppMethodBeat.o(119598);
        return bVar;
    }

    public final /* synthetic */ l dZd() {
        AppMethodBeat.i(119595);
        l lVar = (l) eaM();
        AppMethodBeat.o(119595);
        return lVar;
    }

    public final /* synthetic */ a.i.b.a.c.b.t dZp() {
        AppMethodBeat.i(119599);
        a.i.b.a.c.b.t tVar = (a.i.b.a.c.b.t) eaM();
        AppMethodBeat.o(119599);
        return tVar;
    }

    public final /* synthetic */ o ean() {
        AppMethodBeat.i(119596);
        o oVar = (o) eaM();
        AppMethodBeat.o(119596);
        return oVar;
    }

    public final /* synthetic */ m f(au auVar) {
        AppMethodBeat.i(119601);
        m mVar = (m) i(auVar);
        AppMethodBeat.o(119601);
        return mVar;
    }

    public final d eaL() {
        return this.Bjo;
    }

    public final a.i.b.a.c.l.w dYT() {
        AppMethodBeat.i(119593);
        a.i.b.a.c.l.w dYT = super.dYT();
        if (dYT == null) {
            j.dWJ();
        }
        AppMethodBeat.o(119593);
        return dYT;
    }

    private af eaM() {
        AppMethodBeat.i(119594);
        a.i.b.a.c.b.t dZp = super.dZp();
        if (dZp == null) {
            a.v vVar = new a.v("null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.impl.TypeAliasConstructorDescriptor");
            AppMethodBeat.o(119594);
            throw vVar;
        }
        af afVar = (af) dZp;
        AppMethodBeat.o(119594);
        return afVar;
    }

    private af i(au auVar) {
        AppMethodBeat.i(119600);
        j.p(auVar, "substitutor");
        a.i.b.a.c.b.t c = super.c(auVar);
        if (c == null) {
            a.v vVar = new a.v("null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.impl.TypeAliasConstructorDescriptorImpl");
            AppMethodBeat.o(119600);
            throw vVar;
        }
        ag agVar = (ag) c;
        au aw = au.aw(agVar.dYT());
        j.o(aw, "TypeSubstitutor.create(s…asConstructor.returnType)");
        d a = this.Bjo.dZj().a(aw);
        if (a == null) {
            AppMethodBeat.o(119600);
            return null;
        }
        agVar.Bjo = a;
        af afVar = (af) agVar;
        AppMethodBeat.o(119600);
        return afVar;
    }

    private af d(l lVar, w wVar, az azVar, b$a b_a, boolean z) {
        AppMethodBeat.i(119604);
        j.p(lVar, "newOwner");
        j.p(wVar, "modality");
        j.p(azVar, "visibility");
        j.p(b_a, "kind");
        a.i.b.a.c.b.t dZC = dZw().g(lVar).a(wVar).a(azVar).a(b_a).rG(z).dZC();
        if (dZC == null) {
            a.v vVar = new a.v("null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.impl.TypeAliasConstructorDescriptor");
            AppMethodBeat.o(119604);
            throw vVar;
        }
        af afVar = (af) dZC;
        AppMethodBeat.o(119604);
        return afVar;
    }

    public final /* bridge */ /* synthetic */ l dXW() {
        return (l) this.Bjp;
    }

    public final /* bridge */ /* synthetic */ a.i.b.a.c.b.i dZo() {
        return (a.i.b.a.c.b.i) this.Bjp;
    }
}
