package w6;

import android.content.Context;
import androidx.annotation.Nullable;
import java.util.HashMap;

/* JADX INFO: loaded from: classes2.dex */
public final class m implements f {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final l f34220a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final j f34221b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final HashMap f34222c;

    public m(Context context, j jVar) {
        l lVar = new l(context);
        this.f34222c = new HashMap();
        this.f34220a = lVar;
        this.f34221b = jVar;
    }

    @Override // w6.f
    @Nullable
    public synchronized n get(String str) {
        if (this.f34222c.containsKey(str)) {
            return (n) this.f34222c.get(str);
        }
        e eVar = this.f34220a.get(str);
        if (eVar == null) {
            return null;
        }
        j jVar = this.f34221b;
        n nVarCreate = eVar.create(new d(jVar.f34211a, jVar.f34212b, jVar.f34213c, str));
        this.f34222c.put(str, nVarCreate);
        return nVarCreate;
    }
}
