package defpackage;

import androidx.fragment.app.Fragment$InstantiationException;
import java.lang.reflect.InvocationTargetException;

/* JADX INFO: renamed from: ˑˋᵛ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2064 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static final C4053 f8174 = new C4053(0);

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final /* synthetic */ AbstractC0651 f8175;

    public C2064(AbstractC0651 abstractC0651) {
        this.f8175 = abstractC0651;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static Class m5507(ClassLoader classLoader, String str) throws ClassNotFoundException {
        C4053 c4053 = f8174;
        C4053 c40532 = (C4053) c4053.get(classLoader);
        if (c40532 == null) {
            c40532 = new C4053(0);
            c4053.put(classLoader, c40532);
        }
        Class cls = (Class) c40532.get(str);
        if (cls != null) {
            return cls;
        }
        Class<?> cls2 = Class.forName(str, false, classLoader);
        c40532.put(str, cls2);
        return cls2;
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public static Class m5508(ClassLoader classLoader, String str) {
        try {
            return m5507(classLoader, str);
        } catch (ClassCastException e) {
            throw new Fragment$InstantiationException(AbstractC3589.m8117("Unable to instantiate fragment ", str, ": make sure class is a valid subclass of Fragment"), e);
        } catch (ClassNotFoundException e2) {
            throw new Fragment$InstantiationException(AbstractC3589.m8117("Unable to instantiate fragment ", str, ": make sure class name exists"), e2);
        }
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final AbstractComponentCallbacksC3393 m5509(String str) {
        try {
            return (AbstractComponentCallbacksC3393) m5508(this.f8175.f3066.f6947.getClassLoader(), str).getConstructor(null).newInstance(null);
        } catch (IllegalAccessException e) {
            throw new Fragment$InstantiationException(AbstractC3589.m8117("Unable to instantiate fragment ", str, ": make sure class name exists, is public, and has an empty constructor that is public"), e);
        } catch (InstantiationException e2) {
            throw new Fragment$InstantiationException(AbstractC3589.m8117("Unable to instantiate fragment ", str, ": make sure class name exists, is public, and has an empty constructor that is public"), e2);
        } catch (NoSuchMethodException e3) {
            throw new Fragment$InstantiationException(AbstractC3589.m8117("Unable to instantiate fragment ", str, ": could not find Fragment constructor"), e3);
        } catch (InvocationTargetException e4) {
            throw new Fragment$InstantiationException(AbstractC3589.m8117("Unable to instantiate fragment ", str, ": calling Fragment constructor caused an exception"), e4);
        }
    }
}
