package dp;

import hp.t1;
import mo.c;
import mo.q;
import mo.s;

/* loaded from: classes3.dex */
public final class b0 {

    /* renamed from: a, reason: collision with root package name */
    public static final b0 f16405a = new b0();

    /* loaded from: classes3.dex */
    public /* synthetic */ class a {

        /* renamed from: a, reason: collision with root package name */
        public static final /* synthetic */ int[] f16406a;

        /* renamed from: b, reason: collision with root package name */
        public static final /* synthetic */ int[] f16407b;

        /* renamed from: c, reason: collision with root package name */
        public static final /* synthetic */ int[] f16408c;

        /* renamed from: d, reason: collision with root package name */
        public static final /* synthetic */ int[] f16409d;

        /* renamed from: e, reason: collision with root package name */
        public static final /* synthetic */ int[] f16410e;

        /* renamed from: f, reason: collision with root package name */
        public static final /* synthetic */ int[] f16411f;

        /* renamed from: g, reason: collision with root package name */
        public static final /* synthetic */ int[] f16412g;

        /* renamed from: h, reason: collision with root package name */
        public static final /* synthetic */ int[] f16413h;

        static {
            int[] iArr = new int[mo.k.values().length];
            try {
                iArr[mo.k.FINAL.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[mo.k.OPEN.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                iArr[mo.k.ABSTRACT.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                iArr[mo.k.SEALED.ordinal()] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            f16406a = iArr;
            int[] iArr2 = new int[tn.d0.values().length];
            try {
                iArr2[tn.d0.FINAL.ordinal()] = 1;
            } catch (NoSuchFieldError unused5) {
            }
            try {
                iArr2[tn.d0.OPEN.ordinal()] = 2;
            } catch (NoSuchFieldError unused6) {
            }
            try {
                iArr2[tn.d0.ABSTRACT.ordinal()] = 3;
            } catch (NoSuchFieldError unused7) {
            }
            try {
                iArr2[tn.d0.SEALED.ordinal()] = 4;
            } catch (NoSuchFieldError unused8) {
            }
            f16407b = iArr2;
            int[] iArr3 = new int[mo.x.values().length];
            try {
                iArr3[mo.x.INTERNAL.ordinal()] = 1;
            } catch (NoSuchFieldError unused9) {
            }
            try {
                iArr3[mo.x.PRIVATE.ordinal()] = 2;
            } catch (NoSuchFieldError unused10) {
            }
            try {
                iArr3[mo.x.PRIVATE_TO_THIS.ordinal()] = 3;
            } catch (NoSuchFieldError unused11) {
            }
            try {
                iArr3[mo.x.PROTECTED.ordinal()] = 4;
            } catch (NoSuchFieldError unused12) {
            }
            try {
                iArr3[mo.x.PUBLIC.ordinal()] = 5;
            } catch (NoSuchFieldError unused13) {
            }
            try {
                iArr3[mo.x.LOCAL.ordinal()] = 6;
            } catch (NoSuchFieldError unused14) {
            }
            f16408c = iArr3;
            int[] iArr4 = new int[c.EnumC0669c.values().length];
            try {
                iArr4[c.EnumC0669c.CLASS.ordinal()] = 1;
            } catch (NoSuchFieldError unused15) {
            }
            try {
                iArr4[c.EnumC0669c.INTERFACE.ordinal()] = 2;
            } catch (NoSuchFieldError unused16) {
            }
            try {
                iArr4[c.EnumC0669c.ENUM_CLASS.ordinal()] = 3;
            } catch (NoSuchFieldError unused17) {
            }
            try {
                iArr4[c.EnumC0669c.ENUM_ENTRY.ordinal()] = 4;
            } catch (NoSuchFieldError unused18) {
            }
            try {
                iArr4[c.EnumC0669c.ANNOTATION_CLASS.ordinal()] = 5;
            } catch (NoSuchFieldError unused19) {
            }
            try {
                iArr4[c.EnumC0669c.OBJECT.ordinal()] = 6;
            } catch (NoSuchFieldError unused20) {
            }
            try {
                iArr4[c.EnumC0669c.COMPANION_OBJECT.ordinal()] = 7;
            } catch (NoSuchFieldError unused21) {
            }
            f16409d = iArr4;
            int[] iArr5 = new int[tn.f.values().length];
            try {
                iArr5[tn.f.CLASS.ordinal()] = 1;
            } catch (NoSuchFieldError unused22) {
            }
            try {
                iArr5[tn.f.INTERFACE.ordinal()] = 2;
            } catch (NoSuchFieldError unused23) {
            }
            try {
                iArr5[tn.f.ENUM_CLASS.ordinal()] = 3;
            } catch (NoSuchFieldError unused24) {
            }
            try {
                iArr5[tn.f.ENUM_ENTRY.ordinal()] = 4;
            } catch (NoSuchFieldError unused25) {
            }
            try {
                iArr5[tn.f.ANNOTATION_CLASS.ordinal()] = 5;
            } catch (NoSuchFieldError unused26) {
            }
            try {
                iArr5[tn.f.OBJECT.ordinal()] = 6;
            } catch (NoSuchFieldError unused27) {
            }
            f16410e = iArr5;
            int[] iArr6 = new int[s.c.values().length];
            try {
                iArr6[s.c.IN.ordinal()] = 1;
            } catch (NoSuchFieldError unused28) {
            }
            try {
                iArr6[s.c.OUT.ordinal()] = 2;
            } catch (NoSuchFieldError unused29) {
            }
            try {
                iArr6[s.c.INV.ordinal()] = 3;
            } catch (NoSuchFieldError unused30) {
            }
            f16411f = iArr6;
            int[] iArr7 = new int[q.b.c.values().length];
            try {
                iArr7[q.b.c.IN.ordinal()] = 1;
            } catch (NoSuchFieldError unused31) {
            }
            try {
                iArr7[q.b.c.OUT.ordinal()] = 2;
            } catch (NoSuchFieldError unused32) {
            }
            try {
                iArr7[q.b.c.INV.ordinal()] = 3;
            } catch (NoSuchFieldError unused33) {
            }
            try {
                iArr7[q.b.c.STAR.ordinal()] = 4;
            } catch (NoSuchFieldError unused34) {
            }
            f16412g = iArr7;
            int[] iArr8 = new int[t1.values().length];
            try {
                iArr8[t1.IN_VARIANCE.ordinal()] = 1;
            } catch (NoSuchFieldError unused35) {
            }
            try {
                iArr8[t1.OUT_VARIANCE.ordinal()] = 2;
            } catch (NoSuchFieldError unused36) {
            }
            try {
                iArr8[t1.INVARIANT.ordinal()] = 3;
            } catch (NoSuchFieldError unused37) {
            }
            f16413h = iArr8;
        }
    }

    private b0() {
    }

    public final tn.f a(c.EnumC0669c enumC0669c) {
        switch (enumC0669c == null ? -1 : a.f16409d[enumC0669c.ordinal()]) {
            case 1:
                return tn.f.CLASS;
            case 2:
                return tn.f.INTERFACE;
            case 3:
                return tn.f.ENUM_CLASS;
            case 4:
                return tn.f.ENUM_ENTRY;
            case 5:
                return tn.f.ANNOTATION_CLASS;
            case 6:
            case 7:
                return tn.f.OBJECT;
            default:
                return tn.f.CLASS;
        }
    }

    public final tn.d0 b(mo.k kVar) {
        int i10 = kVar == null ? -1 : a.f16406a[kVar.ordinal()];
        return i10 != 1 ? i10 != 2 ? i10 != 3 ? i10 != 4 ? tn.d0.FINAL : tn.d0.SEALED : tn.d0.ABSTRACT : tn.d0.OPEN : tn.d0.FINAL;
    }

    public final t1 c(q.b.c projection) {
        kotlin.jvm.internal.t.g(projection, "projection");
        int i10 = a.f16412g[projection.ordinal()];
        if (i10 == 1) {
            return t1.IN_VARIANCE;
        }
        if (i10 == 2) {
            return t1.OUT_VARIANCE;
        }
        if (i10 == 3) {
            return t1.INVARIANT;
        }
        if (i10 != 4) {
            throw new rm.t();
        }
        throw new IllegalArgumentException("Only IN, OUT and INV are supported. Actual argument: " + projection);
    }

    public final t1 d(s.c variance) {
        kotlin.jvm.internal.t.g(variance, "variance");
        int i10 = a.f16411f[variance.ordinal()];
        if (i10 == 1) {
            return t1.IN_VARIANCE;
        }
        if (i10 == 2) {
            return t1.OUT_VARIANCE;
        }
        if (i10 == 3) {
            return t1.INVARIANT;
        }
        throw new rm.t();
    }
}
