package o;

import android.content.Context;
import java.util.Collections;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class OI {
    public static final /* synthetic */ DJ[] d;
    public final String a;
    public final ThreadLocal b = new ThreadLocal();
    public final C1580jY c;

    static {
        C1866mZ c1866mZ = new C1866mZ(C0628Yf.l, OI.class, "dataStore", "getDataStore(Landroid/content/Context;)Landroidx/datastore/core/DataStore;", 0);
        C10.a.getClass();
        d = new DJ[]{c1866mZ};
    }

    public OI(Context context, String str) {
        C1580jY c1580jY;
        this.a = str;
        C2000nt c2000nt = new C2000nt(new C1072e7(19, this));
        S1 s1 = new S1(10, this);
        C2468sq c2468sq = AbstractC1903ms.a;
        C0168Gm c0168GmE = C80.e(AbstractC2798wI.t(ExecutorC1232fq.m, AbstractC2378rs0.t()));
        C1675kY c1675kY = new C1675kY(str, c2000nt, s1, c0168GmE);
        DJ dj = d[0];
        C1580jY c1580jY2 = c1675kY.c;
        if (c1580jY2 == null) {
            synchronized (c1675kY.b) {
                try {
                    if (c1675kY.c == null) {
                        Context applicationContext = context.getApplicationContext();
                        List list = (List) s1.g(applicationContext);
                        c1675kY.c = new C1580jY(new C1580jY(new C0041Bp(new C1055dy(ME.A, new U4(20, new C1352h3(9, applicationContext, c1675kY))), Collections.singletonList(new C2105p(list, (InterfaceC0220Im) null, 15)), c2000nt, c0168GmE)));
                    }
                    c1580jY = c1675kY.c;
                } catch (Throwable th) {
                    throw th;
                }
            }
            c1580jY2 = c1580jY;
        }
        this.c = c1580jY2;
    }

    public final void a(OC oc) {
    }
}
