package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.bC, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0794bC {
    public static final I80 b = new I80(0);
    public final /* synthetic */ androidx.fragment.app.s a;

    public C0794bC(androidx.fragment.app.s sVar) {
        this.a = sVar;
    }

    public static Class a(ClassLoader classLoader, String str) throws ClassNotFoundException {
        I80 i80 = b;
        I80 i802 = (I80) i80.get(classLoader);
        if (i802 == null) {
            i802 = new I80(0);
            i80.put(classLoader, i802);
        }
        Class cls = (Class) i802.get(str);
        if (cls != null) {
            return cls;
        }
        Class<?> cls2 = Class.forName(str, false, classLoader);
        i802.put(str, cls2);
        return cls2;
    }

    public static Class b(ClassLoader classLoader, String str) {
        try {
            return a(classLoader, str);
        } catch (ClassCastException e) {
            throw new C2170pj(AbstractC2462sn.j("Unable to instantiate fragment ", str, ": make sure class is a valid subclass of Fragment"), e);
        } catch (ClassNotFoundException e2) {
            throw new C2170pj(AbstractC2462sn.j("Unable to instantiate fragment ", str, ": make sure class name exists"), e2);
        }
    }
}
