package defpackage;

import android.content.Context;
import android.os.Build;
import j$.util.concurrent.ConcurrentHashMap;
import j$.util.concurrent.ConcurrentMap$EL;
import j$.util.function.Function$CC;
import java.util.function.Function;

/* renamed from: ˉᵩ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1212 {

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final ConcurrentHashMap f5136;

    public C1212(int i) {
        switch (i) {
            case 1:
                this.f5136 = new ConcurrentHashMap();
                break;
            default:
                this.f5136 = new ConcurrentHashMap(16);
                break;
        }
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public C4506 m3750(final C2678 c2678, final C0941 c0941) {
        ConcurrentHashMap concurrentHashMap = this.f5136;
        if (Build.VERSION.SDK_INT < 24) {
            C4280 c4280 = new C4280(c2678, c0941);
            C4506 c4506 = new C4506(c4280);
            C4506 c45062 = (C4506) concurrentHashMap.putIfAbsent(c4280.f16060, c4506);
            if (c45062 != null) {
                return c45062;
            }
            C1320.m4041(c2678.f10401, new C5246(this));
            return c4506;
        }
        final C1899 c1899 = new C1899(6);
        c1899.f7667 = false;
        Context context = c2678.f10401;
        String str = c0941.f4248;
        if (str == null) {
            str = (String) c0941.f4246.apply(context);
            c0941.f4248 = str;
        }
        C4506 c45063 = (C4506) ConcurrentMap$EL.computeIfAbsent(concurrentHashMap, str, new Function() { // from class: ˁʨᵴ
            public /* synthetic */ Function andThen(Function function) {
                return Function$CC.$default$andThen(this, function);
            }

            @Override // java.util.function.Function
            public final /* synthetic */ Object apply(Object obj) {
                C4506 c45064 = new C4506(new C4280(c2678, c0941));
                c1899.f7667 = true;
                return c45064;
            }

            public /* synthetic */ Function compose(Function function) {
                return Function$CC.$default$compose(this, function);
            }
        });
        if (c1899.f7667) {
            C1320.m4041(c2678.f10401, new C5246(this));
        }
        return c45063;
    }
}
