package s4;

import androidx.lifecycle.c1;
import androidx.lifecycle.z0;
import kotlin.jvm.internal.t;

/* loaded from: classes.dex */
public abstract class e {
    public static final z0 a(c1.c factory, kn.d modelClass, a extras) {
        t.g(factory, "factory");
        t.g(modelClass, "modelClass");
        t.g(extras, "extras");
        try {
            try {
                return factory.b(modelClass, extras);
            } catch (AbstractMethodError unused) {
                return factory.a(cn.a.b(modelClass));
            }
        } catch (AbstractMethodError unused2) {
            return factory.c(cn.a.b(modelClass), extras);
        }
    }
}
