package fp;

import hp.e0;
import hp.g0;
import hp.l1;
import hp.m0;
import hp.m1;
import hp.t1;
import java.util.List;
import kotlin.jvm.internal.t;
import mo.r;
import tn.d1;
import tn.f1;
import tn.u;
import tn.z0;

/* loaded from: classes3.dex */
public final class l extends vn.d implements g {
    private final oo.c A;
    private final oo.g B;
    private final oo.h C;
    private final f D;
    private m0 E;
    private m0 F;
    private List G;
    private m0 H;

    /* renamed from: z, reason: collision with root package name */
    private final r f18834z;

    /* JADX WARN: Illegal instructions before constructor call */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public l(gp.n storageManager, tn.m containingDeclaration, kotlin.reflect.jvm.internal.impl.descriptors.annotations.g annotations, ro.f name, u visibility, r proto, oo.c nameResolver, oo.g typeTable, oo.h versionRequirementTable, f fVar) {
        super(storageManager, containingDeclaration, annotations, name, NO_SOURCE, visibility);
        t.g(storageManager, "storageManager");
        t.g(containingDeclaration, "containingDeclaration");
        t.g(annotations, "annotations");
        t.g(name, "name");
        t.g(visibility, "visibility");
        t.g(proto, "proto");
        t.g(nameResolver, "nameResolver");
        t.g(typeTable, "typeTable");
        t.g(versionRequirementTable, "versionRequirementTable");
        z0 NO_SOURCE = z0.f36441a;
        t.f(NO_SOURCE, "NO_SOURCE");
        this.f18834z = proto;
        this.A = nameResolver;
        this.B = typeTable;
        this.C = versionRequirementTable;
        this.D = fVar;
    }

    @Override // vn.d
    protected List J0() {
        List list = this.G;
        if (list != null) {
            return list;
        }
        t.y("typeConstructorParameters");
        return null;
    }

    public r L0() {
        return this.f18834z;
    }

    public oo.h M0() {
        return this.C;
    }

    public final void N0(List declaredTypeParameters, m0 underlyingType, m0 expandedType) {
        t.g(declaredTypeParameters, "declaredTypeParameters");
        t.g(underlyingType, "underlyingType");
        t.g(expandedType, "expandedType");
        K0(declaredTypeParameters);
        this.E = underlyingType;
        this.F = expandedType;
        this.G = f1.d(this);
        this.H = D0();
    }

    @Override // tn.b1
    /* renamed from: O0, reason: merged with bridge method [inline-methods] */
    public d1 c(m1 substitutor) {
        t.g(substitutor, "substitutor");
        if (substitutor.k()) {
            return this;
        }
        gp.n c02 = c0();
        tn.m b10 = b();
        t.f(b10, "getContainingDeclaration(...)");
        kotlin.reflect.jvm.internal.impl.descriptors.annotations.g annotations = getAnnotations();
        t.f(annotations, "<get-annotations>(...)");
        ro.f name = getName();
        t.f(name, "getName(...)");
        l lVar = new l(c02, b10, annotations, name, getVisibility(), L0(), V(), P(), M0(), X());
        List s10 = s();
        m0 b02 = b0();
        t1 t1Var = t1.INVARIANT;
        e0 n10 = substitutor.n(b02, t1Var);
        t.f(n10, "safeSubstitute(...)");
        m0 a10 = l1.a(n10);
        e0 n11 = substitutor.n(S(), t1Var);
        t.f(n11, "safeSubstitute(...)");
        lVar.N0(s10, a10, l1.a(n11));
        return lVar;
    }

    @Override // fp.g
    public oo.g P() {
        return this.B;
    }

    @Override // tn.d1
    public m0 S() {
        m0 m0Var = this.F;
        if (m0Var != null) {
            return m0Var;
        }
        t.y("expandedType");
        return null;
    }

    @Override // fp.g
    public oo.c V() {
        return this.A;
    }

    @Override // fp.g
    public f X() {
        return this.D;
    }

    @Override // tn.d1
    public m0 b0() {
        m0 m0Var = this.E;
        if (m0Var != null) {
            return m0Var;
        }
        t.y("underlyingType");
        return null;
    }

    @Override // tn.d1
    public tn.e p() {
        if (g0.a(S())) {
            return null;
        }
        tn.h p10 = S().K0().p();
        if (p10 instanceof tn.e) {
            return (tn.e) p10;
        }
        return null;
    }

    @Override // tn.h
    public m0 q() {
        m0 m0Var = this.H;
        if (m0Var != null) {
            return m0Var;
        }
        t.y("defaultTypeImpl");
        return null;
    }
}
