package defpackage;

import android.app.Application;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/* renamed from: ʿᵫ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC0450 {

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static final List f2506 = AbstractC2240.m5912(Application.class, C2268.class);

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static final List f2507 = Collections.singletonList(C2268.class);

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static final Constructor m2056(Class cls, List list) throws SecurityException {
        for (Constructor<?> constructor : cls.getConstructors()) {
            List listM4717 = AbstractC1658.m4717(constructor.getParameterTypes());
            if (list.equals(listM4717)) {
                return constructor;
            }
            if (list.size() == listM4717.size() && listM4717.containsAll(list)) {
                throw new UnsupportedOperationException("Class " + cls.getSimpleName() + " must have parameters in the proper order: " + list);
            }
        }
        return null;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static final AbstractC0481 m2057(Class cls, Constructor constructor, Object... objArr) {
        try {
            return (AbstractC0481) constructor.newInstance(Arrays.copyOf(objArr, objArr.length));
        } catch (IllegalAccessException e) {
            ᵨᴵᵺ.ᵪʩ(AbstractC2990.m7322(cls, "Failed to access "), e);
            return null;
        } catch (InstantiationException e2) {
            throw new RuntimeException("A " + cls + " cannot be instantiated.", e2);
        } catch (InvocationTargetException e3) {
            ᵨᴵᵺ.ᵪʩ(AbstractC2990.m7322(cls, "An exception happened in constructor of "), e3.getCause());
            return null;
        }
    }
}
