package c.q.d;

import java.util.List;

/* JADX INFO: compiled from: TypeIntrinsics.java */
/* JADX INFO: loaded from: classes.dex */
public class u {
    public static List a(Object obj) {
        if (!(obj instanceof c.q.d.v.a)) {
            return b(obj);
        }
        e(obj, "kotlin.collections.MutableList");
        throw null;
    }

    public static List b(Object obj) {
        try {
            return (List) obj;
        } catch (ClassCastException e2) {
            d(e2);
            throw null;
        }
    }

    private static <T extends Throwable> T c(T t) {
        j.e(t, u.class.getName());
        return t;
    }

    public static ClassCastException d(ClassCastException classCastException) {
        c(classCastException);
        throw classCastException;
    }

    public static void e(Object obj, String str) {
        f((obj == null ? "null" : obj.getClass().getName()) + " cannot be cast to " + str);
        throw null;
    }

    public static void f(String str) {
        d(new ClassCastException(str));
        throw null;
    }
}
