package defpackage;

import androidx.media3.container.NalUnitUtil;
import java.lang.reflect.InvocationTargetException;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\bÀ\u0002\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lc25;", "", "lifecycle-viewmodel_release"}, k = 1, mv = {1, 8, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public final class c25 {
    public static xja a(Class cls) throws InvocationTargetException {
        cr4.g(cls, "modelClass");
        try {
            Object objNewInstance = cls.getDeclaredConstructor(null).newInstance(null);
            cr4.f(objNewInstance, "{\n            modelClass…).newInstance()\n        }");
            return (xja) objNewInstance;
        } catch (IllegalAccessException e) {
            throw new RuntimeException("Cannot create an instance of " + cls, e);
        } catch (InstantiationException e2) {
            throw new RuntimeException("Cannot create an instance of " + cls, e2);
        } catch (NoSuchMethodException e3) {
            throw new RuntimeException("Cannot create an instance of " + cls, e3);
        }
    }
}
