package p138.p145.p146.p168;

import java.lang.reflect.InvocationTargetException;
import p138.p139.p143.p144.C2803;

/* JADX INFO: renamed from: ދ.ؠ.֏.ގ.ނ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@Deprecated
public final class C3188 {
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static InterfaceC3186 m5246(String str) {
        try {
            Class<?> cls = Class.forName(str);
            try {
                Object objNewInstance = cls.getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
                if (objNewInstance instanceof InterfaceC3186) {
                    return (InterfaceC3186) objNewInstance;
                }
                throw new RuntimeException("Expected instanceof GlideModule, but found: " + objNewInstance);
            } catch (IllegalAccessException e) {
                m5247(cls, e);
                throw null;
            } catch (InstantiationException e2) {
                m5247(cls, e2);
                throw null;
            } catch (NoSuchMethodException e3) {
                m5247(cls, e3);
                throw null;
            } catch (InvocationTargetException e4) {
                m5247(cls, e4);
                throw null;
            }
        } catch (ClassNotFoundException e5) {
            throw new IllegalArgumentException("Unable to find GlideModule implementation", e5);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m5247(Class<?> cls, Exception exc) {
        throw new RuntimeException(C2803.m4878("Unable to instantiate GlideModule implementation for ", cls), exc);
    }
}
