package vn;

import com.google.android.gms.measurement.api.AppMeasurementSdk;
import hp.t1;
import java.util.ArrayList;
import java.util.List;
import tn.c1;
import tn.e1;
import tn.z0;

/* loaded from: classes3.dex */
public class k0 extends e {
    private final List A;
    private boolean B;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    private k0(tn.m mVar, kotlin.reflect.jvm.internal.impl.descriptors.annotations.g gVar, boolean z10, t1 t1Var, ro.f fVar, int i10, z0 z0Var, dn.l lVar, c1 c1Var, gp.n nVar) {
        super(nVar, mVar, gVar, fVar, t1Var, z10, i10, z0Var, c1Var);
        if (mVar == null) {
            D(19);
        }
        if (gVar == null) {
            D(20);
        }
        if (t1Var == null) {
            D(21);
        }
        if (fVar == null) {
            D(22);
        }
        if (z0Var == null) {
            D(23);
        }
        if (c1Var == null) {
            D(24);
        }
        if (nVar == null) {
            D(25);
        }
        this.A = new ArrayList(1);
        this.B = false;
        this.f40273z = lVar;
    }

    private static /* synthetic */ void D(int i10) {
        String str = (i10 == 5 || i10 == 28) ? "@NotNull method %s.%s must not return null" : "Argument for @NotNull parameter '%s' of %s.%s must not be null";
        Object[] objArr = new Object[(i10 == 5 || i10 == 28) ? 2 : 3];
        switch (i10) {
            case 1:
            case 7:
            case 13:
            case 20:
                objArr[0] = "annotations";
                break;
            case 2:
            case 8:
            case 14:
            case 21:
                objArr[0] = "variance";
                break;
            case 3:
            case 9:
            case 15:
            case 22:
                objArr[0] = AppMeasurementSdk.ConditionalUserProperty.NAME;
                break;
            case 4:
            case 11:
            case 18:
            case 25:
                objArr[0] = "storageManager";
                break;
            case 5:
            case 28:
                objArr[0] = "kotlin/reflect/jvm/internal/impl/descriptors/impl/TypeParameterDescriptorImpl";
                break;
            case 6:
            case 12:
            case 19:
            default:
                objArr[0] = "containingDeclaration";
                break;
            case 10:
            case 16:
            case 23:
                objArr[0] = "source";
                break;
            case 17:
                objArr[0] = "supertypeLoopsResolver";
                break;
            case 24:
                objArr[0] = "supertypeLoopsChecker";
                break;
            case 26:
                objArr[0] = "bound";
                break;
            case 27:
                objArr[0] = "type";
                break;
        }
        if (i10 == 5) {
            objArr[1] = "createWithDefaultBound";
        } else if (i10 != 28) {
            objArr[1] = "kotlin/reflect/jvm/internal/impl/descriptors/impl/TypeParameterDescriptorImpl";
        } else {
            objArr[1] = "resolveUpperBounds";
        }
        switch (i10) {
            case 5:
            case 28:
                break;
            case 6:
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
            case 12:
            case 13:
            case 14:
            case 15:
            case 16:
            case 17:
            case 18:
                objArr[2] = "createForFurtherModification";
                break;
            case 19:
            case 20:
            case 21:
            case 22:
            case 23:
            case 24:
            case 25:
                objArr[2] = "<init>";
                break;
            case 26:
                objArr[2] = "addUpperBound";
                break;
            case 27:
                objArr[2] = "reportSupertypeLoopError";
                break;
            default:
                objArr[2] = "createWithDefaultBound";
                break;
        }
        String format = String.format(str, objArr);
        if (i10 != 5 && i10 != 28) {
            throw new IllegalArgumentException(format);
        }
        throw new IllegalStateException(format);
    }

    private void K0() {
        if (this.B) {
            return;
        }
        throw new IllegalStateException("Type parameter descriptor is not initialized: " + R0());
    }

    private void L0() {
        if (this.B) {
            throw new IllegalStateException("Type parameter descriptor is already initialized: " + R0());
        }
    }

    public static k0 M0(tn.m mVar, kotlin.reflect.jvm.internal.impl.descriptors.annotations.g gVar, boolean z10, t1 t1Var, ro.f fVar, int i10, z0 z0Var, dn.l lVar, c1 c1Var, gp.n nVar) {
        if (mVar == null) {
            D(12);
        }
        if (gVar == null) {
            D(13);
        }
        if (t1Var == null) {
            D(14);
        }
        if (fVar == null) {
            D(15);
        }
        if (z0Var == null) {
            D(16);
        }
        if (c1Var == null) {
            D(17);
        }
        if (nVar == null) {
            D(18);
        }
        return new k0(mVar, gVar, z10, t1Var, fVar, i10, z0Var, lVar, c1Var, nVar);
    }

    public static k0 N0(tn.m mVar, kotlin.reflect.jvm.internal.impl.descriptors.annotations.g gVar, boolean z10, t1 t1Var, ro.f fVar, int i10, z0 z0Var, gp.n nVar) {
        if (mVar == null) {
            D(6);
        }
        if (gVar == null) {
            D(7);
        }
        if (t1Var == null) {
            D(8);
        }
        if (fVar == null) {
            D(9);
        }
        if (z0Var == null) {
            D(10);
        }
        if (nVar == null) {
            D(11);
        }
        return M0(mVar, gVar, z10, t1Var, fVar, i10, z0Var, null, c1.a.f36370a, nVar);
    }

    public static e1 O0(tn.m mVar, kotlin.reflect.jvm.internal.impl.descriptors.annotations.g gVar, boolean z10, t1 t1Var, ro.f fVar, int i10, gp.n nVar) {
        if (mVar == null) {
            D(0);
        }
        if (gVar == null) {
            D(1);
        }
        if (t1Var == null) {
            D(2);
        }
        if (fVar == null) {
            D(3);
        }
        if (nVar == null) {
            D(4);
        }
        k0 N0 = N0(mVar, gVar, z10, t1Var, fVar, i10, z0.f36441a, nVar);
        N0.J0(xo.c.j(mVar).y());
        N0.S0();
        return N0;
    }

    private void P0(hp.e0 e0Var) {
        if (hp.g0.a(e0Var)) {
            return;
        }
        this.A.add(e0Var);
    }

    private String R0() {
        return getName() + " declared in " + to.f.m(b());
    }

    @Override // vn.e
    protected void H0(hp.e0 e0Var) {
        if (e0Var == null) {
            D(27);
        }
        dn.l lVar = this.f40273z;
        if (lVar == null) {
            return;
        }
        lVar.invoke(e0Var);
    }

    @Override // vn.e
    protected List I0() {
        K0();
        List list = this.A;
        if (list == null) {
            D(28);
        }
        return list;
    }

    public void J0(hp.e0 e0Var) {
        if (e0Var == null) {
            D(26);
        }
        L0();
        P0(e0Var);
    }

    public boolean Q0() {
        return this.B;
    }

    public void S0() {
        L0();
        this.B = true;
    }
}
