package kotlin.reflect.w.internal.y0.n;

import kotlin.reflect.w.internal.y0.n.z1.d;

/* JADX INFO: loaded from: classes2.dex */
public class n1 extends m1 {
    public final x1 a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final h0 f8966b;

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public n1(h0 h0Var) {
        this(x1.INVARIANT, h0Var);
        if (h0Var != null) {
        } else {
            d(2);
            throw null;
        }
    }

    public n1(x1 x1Var, h0 h0Var) {
        if (x1Var == null) {
            d(0);
            throw null;
        }
        if (h0Var == null) {
            d(1);
            throw null;
        }
        this.a = x1Var;
        this.f8966b = h0Var;
    }

    public static /* synthetic */ void d(int i2) {
        String str = (i2 == 4 || i2 == 5) ? "@NotNull method %s.%s must not return null" : "Argument for @NotNull parameter '%s' of %s.%s must not be null";
        Object[] objArr = new Object[(i2 == 4 || i2 == 5) ? 2 : 3];
        switch (i2) {
            case 1:
            case 2:
            case 3:
                objArr[0] = "type";
                break;
            case 4:
            case 5:
                objArr[0] = "kotlin/reflect/jvm/internal/impl/types/TypeProjectionImpl";
                break;
            case 6:
                objArr[0] = "kotlinTypeRefiner";
                break;
            default:
                objArr[0] = "projection";
                break;
        }
        if (i2 == 4) {
            objArr[1] = "getProjectionKind";
        } else if (i2 != 5) {
            objArr[1] = "kotlin/reflect/jvm/internal/impl/types/TypeProjectionImpl";
        } else {
            objArr[1] = "getType";
        }
        if (i2 == 3) {
            objArr[2] = "replaceType";
        } else if (i2 != 4 && i2 != 5) {
            if (i2 != 6) {
                objArr[2] = "<init>";
            } else {
                objArr[2] = "refine";
            }
        }
        String str2 = String.format(str, objArr);
        if (i2 != 4 && i2 != 5) {
            throw new IllegalArgumentException(str2);
        }
        throw new IllegalStateException(str2);
    }

    @Override // kotlin.reflect.w.internal.y0.n.l1
    public l1 a(d dVar) {
        return new n1(this.a, dVar.a(this.f8966b));
    }

    @Override // kotlin.reflect.w.internal.y0.n.l1
    public x1 b() {
        x1 x1Var = this.a;
        if (x1Var != null) {
            return x1Var;
        }
        d(4);
        throw null;
    }

    @Override // kotlin.reflect.w.internal.y0.n.l1
    public boolean c() {
        return false;
    }

    @Override // kotlin.reflect.w.internal.y0.n.l1
    public h0 getType() {
        h0 h0Var = this.f8966b;
        if (h0Var != null) {
            return h0Var;
        }
        d(5);
        throw null;
    }
}
