package o;

import java.nio.charset.Charset;
import java.util.concurrent.ConcurrentHashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.fu0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1241fu0 {
    public static final C1241fu0 c = new C1241fu0();
    public final ConcurrentHashMap b = new ConcurrentHashMap();
    public final OD a = new OD(3);

    public final InterfaceC1718ku0 a(Class cls) {
        InterfaceC1718ku0 interfaceC1718ku0T;
        Charset charset = Et0.a;
        if (cls == null) {
            throw new NullPointerException("messageType");
        }
        ConcurrentHashMap concurrentHashMap = this.b;
        InterfaceC1718ku0 interfaceC1718ku0 = (InterfaceC1718ku0) concurrentHashMap.get(cls);
        if (interfaceC1718ku0 != null) {
            return interfaceC1718ku0;
        }
        OD od = this.a;
        od.getClass();
        Kt0 kt0 = AbstractC1908mu0.a;
        AbstractC2665ut0.class.isAssignableFrom(cls);
        C1527iu0 c1527iu0F = ((C1696kj0) od.m).f(cls);
        if ((c1527iu0F.d & 2) == 2) {
            Kt0 kt02 = AbstractC1908mu0.a;
            Lp0 lp0 = AbstractC1525it0.a;
            interfaceC1718ku0T = new C0859bu0(kt02, c1527iu0F.a);
        } else {
            int i = AbstractC0954cu0.a;
            int i2 = Lt0.a;
            Kt0 kt03 = AbstractC1908mu0.a;
            Lp0 lp02 = c1527iu0F.a() + (-1) != 1 ? AbstractC1525it0.a : null;
            int i3 = Tt0.a;
            interfaceC1718ku0T = C0763au0.t(c1527iu0F, kt03, lp02);
        }
        InterfaceC1718ku0 interfaceC1718ku02 = (InterfaceC1718ku0) concurrentHashMap.putIfAbsent(cls, interfaceC1718ku0T);
        return interfaceC1718ku02 != null ? interfaceC1718ku02 : interfaceC1718ku0T;
    }
}
