package androidx.lifecycle;

import java.lang.reflect.InvocationTargetException;
import r4.AbstractC0983h;

/* JADX INFO: loaded from: classes.dex */
public class b0 implements a0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static b0 f4463a;

    @Override // androidx.lifecycle.a0
    public X a(Class cls) throws InvocationTargetException {
        try {
            Object objNewInstance = cls.getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
            AbstractC0983h.d("{\n                modelC…wInstance()\n            }", objNewInstance);
            return (X) objNewInstance;
        } catch (IllegalAccessException e2) {
            throw new RuntimeException("Cannot create an instance of " + cls, e2);
        } catch (InstantiationException e6) {
            throw new RuntimeException("Cannot create an instance of " + cls, e6);
        } catch (NoSuchMethodException e7) {
            throw new RuntimeException("Cannot create an instance of " + cls, e7);
        }
    }
}
