package p002do;

import com.google.android.gms.measurement.api.AppMeasurementSdk;
import hp.e0;
import java.util.List;
import jo.r;
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.g;
import rm.v;
import tn.a;
import tn.b;
import tn.d0;
import tn.i1;
import tn.j;
import tn.m;
import tn.t0;
import tn.u;
import tn.v0;
import tn.w0;
import tn.z0;
import to.e;
import vn.c0;

/* loaded from: classes3.dex */
public class f extends c0 implements a {
    private final boolean R;
    private final v S;
    private e0 T;

    /* JADX INFO: Access modifiers changed from: protected */
    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public f(m mVar, g gVar, d0 d0Var, u uVar, boolean z10, ro.f fVar, z0 z0Var, t0 t0Var, b.a aVar, boolean z11, v vVar) {
        super(mVar, t0Var, gVar, d0Var, uVar, z10, fVar, aVar, z0Var, false, false, false, false, false, false);
        if (mVar == null) {
            D(0);
        }
        if (gVar == null) {
            D(1);
        }
        if (d0Var == null) {
            D(2);
        }
        if (uVar == null) {
            D(3);
        }
        if (fVar == null) {
            D(4);
        }
        if (z0Var == null) {
            D(5);
        }
        if (aVar == null) {
            D(6);
        }
        this.T = null;
        this.R = z11;
        this.S = vVar;
    }

    private static /* synthetic */ void D(int i10) {
        String str = i10 != 21 ? "Argument for @NotNull parameter '%s' of %s.%s must not be null" : "@NotNull method %s.%s must not return null";
        Object[] objArr = new Object[i10 != 21 ? 3 : 2];
        switch (i10) {
            case 1:
            case 8:
                objArr[0] = "annotations";
                break;
            case 2:
            case 9:
                objArr[0] = "modality";
                break;
            case 3:
            case 10:
                objArr[0] = "visibility";
                break;
            case 4:
            case 11:
                objArr[0] = AppMeasurementSdk.ConditionalUserProperty.NAME;
                break;
            case 5:
            case 12:
            case 18:
                objArr[0] = "source";
                break;
            case 6:
            case 16:
                objArr[0] = "kind";
                break;
            case 7:
            default:
                objArr[0] = "containingDeclaration";
                break;
            case 13:
                objArr[0] = "newOwner";
                break;
            case 14:
                objArr[0] = "newModality";
                break;
            case 15:
                objArr[0] = "newVisibility";
                break;
            case 17:
                objArr[0] = "newName";
                break;
            case 19:
                objArr[0] = "enhancedValueParameterTypes";
                break;
            case 20:
                objArr[0] = "enhancedReturnType";
                break;
            case 21:
                objArr[0] = "kotlin/reflect/jvm/internal/impl/load/java/descriptors/JavaPropertyDescriptor";
                break;
            case 22:
                objArr[0] = "inType";
                break;
        }
        if (i10 != 21) {
            objArr[1] = "kotlin/reflect/jvm/internal/impl/load/java/descriptors/JavaPropertyDescriptor";
        } else {
            objArr[1] = "enhance";
        }
        switch (i10) {
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
            case 12:
                objArr[2] = "create";
                break;
            case 13:
            case 14:
            case 15:
            case 16:
            case 17:
            case 18:
                objArr[2] = "createSubstitutedCopy";
                break;
            case 19:
            case 20:
                objArr[2] = "enhance";
                break;
            case 21:
                break;
            case 22:
                objArr[2] = "setInType";
                break;
            default:
                objArr[2] = "<init>";
                break;
        }
        String format = String.format(str, objArr);
        if (i10 == 21) {
            throw new IllegalStateException(format);
        }
    }

    public static f c1(m mVar, g gVar, d0 d0Var, u uVar, boolean z10, ro.f fVar, z0 z0Var, boolean z11) {
        if (mVar == null) {
            D(7);
        }
        if (gVar == null) {
            D(8);
        }
        if (d0Var == null) {
            D(9);
        }
        if (uVar == null) {
            D(10);
        }
        if (fVar == null) {
            D(11);
        }
        if (z0Var == null) {
            D(12);
        }
        return new f(mVar, gVar, d0Var, uVar, z10, fVar, z0Var, null, b.a.DECLARATION, z11, null);
    }

    @Override // vn.m0, tn.a
    public boolean C() {
        return false;
    }

    @Override // vn.c0, tn.a
    public Object K(a.InterfaceC0861a interfaceC0861a) {
        v vVar = this.S;
        if (vVar == null || !((a.InterfaceC0861a) vVar.c()).equals(interfaceC0861a)) {
            return null;
        }
        return this.S.d();
    }

    @Override // vn.c0
    protected c0 M0(m mVar, d0 d0Var, u uVar, t0 t0Var, b.a aVar, ro.f fVar, z0 z0Var) {
        if (mVar == null) {
            D(13);
        }
        if (d0Var == null) {
            D(14);
        }
        if (uVar == null) {
            D(15);
        }
        if (aVar == null) {
            D(16);
        }
        if (fVar == null) {
            D(17);
        }
        if (z0Var == null) {
            D(18);
        }
        return new f(mVar, getAnnotations(), d0Var, uVar, e0(), fVar, z0Var, t0Var, aVar, this.R, this.S);
    }

    @Override // vn.c0
    public void W0(e0 e0Var) {
        if (e0Var == null) {
            D(22);
        }
        this.T = e0Var;
    }

    @Override // vn.c0, tn.j1
    public boolean isConst() {
        e0 type = getType();
        return this.R && j.a(type) && (!r.i(type) || qn.g.v0(type));
    }

    @Override // p002do.a
    public a u(e0 e0Var, List list, e0 e0Var2, v vVar) {
        vn.d0 d0Var;
        vn.e0 e0Var3;
        List k10;
        if (list == null) {
            D(19);
        }
        if (e0Var2 == null) {
            D(20);
        }
        t0 a10 = a() == this ? null : a();
        f fVar = new f(b(), getAnnotations(), k(), getVisibility(), e0(), getName(), getSource(), a10, g(), this.R, vVar);
        vn.d0 getter = getGetter();
        if (getter != null) {
            d0Var = r15;
            vn.d0 d0Var2 = new vn.d0(fVar, getter.getAnnotations(), getter.k(), getter.getVisibility(), getter.R(), getter.isExternal(), getter.isInline(), g(), a10 == null ? null : a10.getGetter(), getter.getSource());
            d0Var.J0(getter.Y());
            d0Var.M0(e0Var2);
        } else {
            d0Var = null;
        }
        v0 f10 = f();
        if (f10 != null) {
            vn.e0 e0Var4 = new vn.e0(fVar, f10.getAnnotations(), f10.k(), f10.getVisibility(), f10.R(), f10.isExternal(), f10.isInline(), g(), a10 == null ? null : a10.f(), f10.getSource());
            e0Var4.J0(e0Var4.Y());
            e0Var4.N0((i1) f10.i().get(0));
            e0Var3 = e0Var4;
        } else {
            e0Var3 = null;
        }
        fVar.S0(d0Var, e0Var3, l0(), h0());
        fVar.X0(T0());
        dn.a aVar = this.f40299w;
        if (aVar != null) {
            fVar.H0(this.f40298v, aVar);
        }
        fVar.t0(e());
        w0 i10 = e0Var == null ? null : e.i(this, e0Var, g.f26219f.b());
        List typeParameters = getTypeParameters();
        w0 Z = Z();
        k10 = sm.u.k();
        fVar.Y0(e0Var2, typeParameters, Z, i10, k10);
        return fVar;
    }
}
