package vn;

import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import tn.b;
import tn.w0;
import tn.y;
import tn.y0;
import tn.z0;

/* loaded from: classes3.dex */
public class g0 extends p implements y0 {
    /* JADX INFO: Access modifiers changed from: protected */
    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public g0(tn.m mVar, y0 y0Var, kotlin.reflect.jvm.internal.impl.descriptors.annotations.g gVar, ro.f fVar, b.a aVar, z0 z0Var) {
        super(mVar, y0Var, gVar, fVar, aVar, z0Var);
        if (mVar == null) {
            D(0);
        }
        if (gVar == null) {
            D(1);
        }
        if (fVar == null) {
            D(2);
        }
        if (aVar == null) {
            D(3);
        }
        if (z0Var == null) {
            D(4);
        }
    }

    private static /* synthetic */ void D(int i10) {
        String str = (i10 == 13 || i10 == 18 || i10 == 23 || i10 == 24 || i10 == 29 || i10 == 30) ? "@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 == 13 || i10 == 18 || i10 == 23 || i10 == 24 || i10 == 29 || i10 == 30) ? 2 : 3];
        switch (i10) {
            case 1:
            case 6:
            case 27:
                objArr[0] = "annotations";
                break;
            case 2:
            case 7:
                objArr[0] = AppMeasurementSdk.ConditionalUserProperty.NAME;
                break;
            case 3:
            case 8:
            case 26:
                objArr[0] = "kind";
                break;
            case 4:
            case 9:
            case 28:
                objArr[0] = "source";
                break;
            case 5:
            default:
                objArr[0] = "containingDeclaration";
                break;
            case 10:
            case 15:
            case 20:
                objArr[0] = "typeParameters";
                break;
            case 11:
            case 16:
            case 21:
                objArr[0] = "unsubstitutedValueParameters";
                break;
            case 12:
            case 17:
            case 22:
                objArr[0] = "visibility";
                break;
            case 13:
            case 18:
            case 23:
            case 24:
            case 29:
            case 30:
                objArr[0] = "kotlin/reflect/jvm/internal/impl/descriptors/impl/SimpleFunctionDescriptorImpl";
                break;
            case 14:
            case 19:
                objArr[0] = "contextReceiverParameters";
                break;
            case 25:
                objArr[0] = "newOwner";
                break;
        }
        if (i10 == 13 || i10 == 18 || i10 == 23) {
            objArr[1] = "initialize";
        } else if (i10 == 24) {
            objArr[1] = "getOriginal";
        } else if (i10 == 29) {
            objArr[1] = "copy";
        } else if (i10 != 30) {
            objArr[1] = "kotlin/reflect/jvm/internal/impl/descriptors/impl/SimpleFunctionDescriptorImpl";
        } else {
            objArr[1] = "newCopyBuilder";
        }
        switch (i10) {
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
                objArr[2] = "create";
                break;
            case 10:
            case 11:
            case 12:
            case 14:
            case 15:
            case 16:
            case 17:
            case 19:
            case 20:
            case 21:
            case 22:
                objArr[2] = "initialize";
                break;
            case 13:
            case 18:
            case 23:
            case 24:
            case 29:
            case 30:
                break;
            case 25:
            case 26:
            case 27:
            case 28:
                objArr[2] = "createSubstitutedCopy";
                break;
            default:
                objArr[2] = "<init>";
                break;
        }
        String format = String.format(str, objArr);
        if (i10 != 13 && i10 != 18 && i10 != 23 && i10 != 24 && i10 != 29 && i10 != 30) {
            throw new IllegalArgumentException(format);
        }
        throw new IllegalStateException(format);
    }

    public static g0 i1(tn.m mVar, kotlin.reflect.jvm.internal.impl.descriptors.annotations.g gVar, ro.f fVar, b.a aVar, z0 z0Var) {
        if (mVar == null) {
            D(5);
        }
        if (gVar == null) {
            D(6);
        }
        if (fVar == null) {
            D(7);
        }
        if (aVar == null) {
            D(8);
        }
        if (z0Var == null) {
            D(9);
        }
        return new g0(mVar, null, gVar, fVar, aVar, z0Var);
    }

    @Override // vn.p
    protected p I0(tn.m mVar, tn.y yVar, b.a aVar, ro.f fVar, kotlin.reflect.jvm.internal.impl.descriptors.annotations.g gVar, z0 z0Var) {
        if (mVar == null) {
            D(25);
        }
        if (aVar == null) {
            D(26);
        }
        if (gVar == null) {
            D(27);
        }
        if (z0Var == null) {
            D(28);
        }
        y0 y0Var = (y0) yVar;
        if (fVar == null) {
            fVar = getName();
        }
        return new g0(mVar, y0Var, gVar, fVar, aVar, z0Var);
    }

    @Override // tn.b
    /* renamed from: h1 */
    public y0 z(tn.m mVar, tn.d0 d0Var, tn.u uVar, b.a aVar, boolean z10) {
        y0 y0Var = (y0) super.H0(mVar, d0Var, uVar, aVar, z10);
        if (y0Var == null) {
            D(29);
        }
        return y0Var;
    }

    @Override // vn.k
    /* renamed from: j1, reason: merged with bridge method [inline-methods] */
    public y0 a() {
        y0 y0Var = (y0) super.a();
        if (y0Var == null) {
            D(24);
        }
        return y0Var;
    }

    @Override // vn.p
    /* renamed from: k1, reason: merged with bridge method [inline-methods] */
    public g0 O0(w0 w0Var, w0 w0Var2, List list, List list2, List list3, hp.e0 e0Var, tn.d0 d0Var, tn.u uVar) {
        if (list == null) {
            D(14);
        }
        if (list2 == null) {
            D(15);
        }
        if (list3 == null) {
            D(16);
        }
        if (uVar == null) {
            D(17);
        }
        g0 l12 = l1(w0Var, w0Var2, list, list2, list3, e0Var, d0Var, uVar, null);
        if (l12 == null) {
            D(18);
        }
        return l12;
    }

    public g0 l1(w0 w0Var, w0 w0Var2, List list, List list2, List list3, hp.e0 e0Var, tn.d0 d0Var, tn.u uVar, Map map) {
        if (list == null) {
            D(19);
        }
        if (list2 == null) {
            D(20);
        }
        if (list3 == null) {
            D(21);
        }
        if (uVar == null) {
            D(22);
        }
        super.O0(w0Var, w0Var2, list, list2, list3, e0Var, d0Var, uVar);
        if (map != null && !map.isEmpty()) {
            this.S = new LinkedHashMap(map);
        }
        return this;
    }

    @Override // vn.p, tn.y, tn.y0
    public y.a r() {
        y.a r10 = super.r();
        if (r10 == null) {
            D(30);
        }
        return r10;
    }
}
