package cn;

import java.lang.annotation.Annotation;
import kn.d;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.p0;
import kotlin.jvm.internal.t;

/* loaded from: classes3.dex */
public abstract class a {
    public static final d a(Annotation annotation) {
        t.g(annotation, "<this>");
        Class<? extends Annotation> annotationType = annotation.annotationType();
        t.f(annotationType, "annotationType(...)");
        d e10 = e(annotationType);
        t.e(e10, "null cannot be cast to non-null type kotlin.reflect.KClass<out T of kotlin.jvm.JvmClassMappingKt.<get-annotationClass>>");
        return e10;
    }

    public static final Class b(d dVar) {
        t.g(dVar, "<this>");
        Class e10 = ((h) dVar).e();
        t.e(e10, "null cannot be cast to non-null type java.lang.Class<T of kotlin.jvm.JvmClassMappingKt.<get-java>>");
        return e10;
    }

    public static final Class c(d dVar) {
        t.g(dVar, "<this>");
        Class e10 = ((h) dVar).e();
        if (!e10.isPrimitive()) {
            t.e(e10, "null cannot be cast to non-null type java.lang.Class<T of kotlin.jvm.JvmClassMappingKt.<get-javaObjectType>>");
            return e10;
        }
        String name = e10.getName();
        switch (name.hashCode()) {
            case -1325958191:
                if (name.equals("double")) {
                    e10 = Double.class;
                    break;
                }
                break;
            case 104431:
                if (name.equals("int")) {
                    e10 = Integer.class;
                    break;
                }
                break;
            case 3039496:
                if (name.equals("byte")) {
                    e10 = Byte.class;
                    break;
                }
                break;
            case 3052374:
                if (name.equals("char")) {
                    e10 = Character.class;
                    break;
                }
                break;
            case 3327612:
                if (name.equals("long")) {
                    e10 = Long.class;
                    break;
                }
                break;
            case 3625364:
                if (name.equals("void")) {
                    e10 = Void.class;
                    break;
                }
                break;
            case 64711720:
                if (name.equals("boolean")) {
                    e10 = Boolean.class;
                    break;
                }
                break;
            case 97526364:
                if (name.equals("float")) {
                    e10 = Float.class;
                    break;
                }
                break;
            case 109413500:
                if (name.equals("short")) {
                    e10 = Short.class;
                    break;
                }
                break;
        }
        t.e(e10, "null cannot be cast to non-null type java.lang.Class<T of kotlin.jvm.JvmClassMappingKt.<get-javaObjectType>>");
        return e10;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    public static final Class d(d dVar) {
        t.g(dVar, "<this>");
        Class e10 = ((h) dVar).e();
        if (e10.isPrimitive()) {
            t.e(e10, "null cannot be cast to non-null type java.lang.Class<T of kotlin.jvm.JvmClassMappingKt.<get-javaPrimitiveType>>");
            return e10;
        }
        String name = e10.getName();
        switch (name.hashCode()) {
            case -2056817302:
                if (name.equals("java.lang.Integer")) {
                    return Integer.TYPE;
                }
                return null;
            case -527879800:
                if (name.equals("java.lang.Float")) {
                    return Float.TYPE;
                }
                return null;
            case -515992664:
                if (name.equals("java.lang.Short")) {
                    return Short.TYPE;
                }
                return null;
            case 155276373:
                if (name.equals("java.lang.Character")) {
                    return Character.TYPE;
                }
                return null;
            case 344809556:
                if (name.equals("java.lang.Boolean")) {
                    return Boolean.TYPE;
                }
                return null;
            case 398507100:
                if (name.equals("java.lang.Byte")) {
                    return Byte.TYPE;
                }
                return null;
            case 398795216:
                if (name.equals("java.lang.Long")) {
                    return Long.TYPE;
                }
                return null;
            case 399092968:
                if (name.equals("java.lang.Void")) {
                    return Void.TYPE;
                }
                return null;
            case 761287205:
                if (name.equals("java.lang.Double")) {
                    return Double.TYPE;
                }
                return null;
            default:
                return null;
        }
    }

    public static final d e(Class cls) {
        t.g(cls, "<this>");
        return p0.b(cls);
    }
}
