package p033k1;

import p039m1.C1470g;
import p039m1.InterfaceC1464b;
import p051q1.InterfaceC1566b;

/* renamed from: k1.a */
/* loaded from: classes.dex */
public final class C1350a {
    /* renamed from: a */
    public static final <T> Class<T> m1577a(InterfaceC1566b<T> interfaceC1566b) {
        C1470g.m1292e(interfaceC1566b, "<this>");
        Class<T> cls = (Class<T>) ((InterfaceC1464b) interfaceC1566b).mo1281a();
        C1470g.m1294c(cls, "null cannot be cast to non-null type java.lang.Class<T of kotlin.jvm.JvmClassMappingKt.<get-java>>");
        return cls;
    }

    /* renamed from: b */
    public static final <T> Class<T> m1576b(InterfaceC1566b<T> interfaceC1566b) {
        C1470g.m1292e(interfaceC1566b, "<this>");
        Class<T> cls = (Class<T>) ((InterfaceC1464b) interfaceC1566b).mo1281a();
        if (!cls.isPrimitive()) {
            C1470g.m1294c(cls, "null cannot be cast to non-null type java.lang.Class<T of kotlin.jvm.JvmClassMappingKt.<get-javaObjectType>>");
            return cls;
        }
        String name = cls.getName();
        switch (name.hashCode()) {
            case -1325958191:
                if (name.equals("double")) {
                    cls = (Class<T>) Double.class;
                    break;
                }
                break;
            case 104431:
                if (name.equals("int")) {
                    cls = (Class<T>) Integer.class;
                    break;
                }
                break;
            case 3039496:
                if (name.equals("byte")) {
                    cls = (Class<T>) Byte.class;
                    break;
                }
                break;
            case 3052374:
                if (name.equals("char")) {
                    cls = (Class<T>) Character.class;
                    break;
                }
                break;
            case 3327612:
                if (name.equals("long")) {
                    cls = (Class<T>) Long.class;
                    break;
                }
                break;
            case 3625364:
                if (name.equals("void")) {
                    cls = (Class<T>) Void.class;
                    break;
                }
                break;
            case 64711720:
                if (name.equals("boolean")) {
                    cls = (Class<T>) Boolean.class;
                    break;
                }
                break;
            case 97526364:
                if (name.equals("float")) {
                    cls = (Class<T>) Float.class;
                    break;
                }
                break;
            case 109413500:
                if (name.equals("short")) {
                    cls = (Class<T>) Short.class;
                    break;
                }
                break;
        }
        C1470g.m1294c(cls, "null cannot be cast to non-null type java.lang.Class<T of kotlin.jvm.JvmClassMappingKt.<get-javaObjectType>>");
        return cls;
    }
}