package o;

import android.content.Context;
import android.os.Process;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class OY {
    public final Context a;
    public final C1014dc0 b;
    public final int c = Process.myPid();
    public final C1014dc0 d;
    public final C1014dc0 e;
    public boolean f;

    public OY(Context context, C2643ui0 c2643ui0) {
        this.a = context;
        final int i = 0;
        this.b = new C1014dc0(new NC(this) { // from class: o.NY
            public final /* synthetic */ OY m;

            {
                this.m = this;
            }

            @Override // o.NC
            public final Object a() {
                switch (i) {
                    case 0:
                        return ((PY) this.m.e.getValue()).a;
                    default:
                        return IJ.s(this.m.a);
                }
            }
        });
        this.d = new C1014dc0(new C1164f5(12, c2643ui0));
        final int i2 = 1;
        this.e = new C1014dc0(new NC(this) { // from class: o.NY
            public final /* synthetic */ OY m;

            {
                this.m = this;
            }

            @Override // o.NC
            public final Object a() {
                switch (i2) {
                    case 0:
                        return ((PY) this.m.e.getValue()).a;
                    default:
                        return IJ.s(this.m.a);
                }
            }
        });
    }

    public final String a() {
        return (String) this.b.getValue();
    }

    public final Map b(Map map) {
        C1014dc0 c1014dc0 = this.d;
        if (map == null) {
            return Collections.singletonMap(a(), new MY(Process.myPid(), (String) c1014dc0.getValue()));
        }
        LinkedHashMap linkedHashMap = new LinkedHashMap(map);
        linkedHashMap.put(a(), new MY(Process.myPid(), (String) c1014dc0.getValue()));
        return GN.d0(linkedHashMap);
    }
}
