package com.google.android.gms.internal.ads;

import androidx.annotation.Nullable;
import java.util.HashMap;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public final class dz0 implements xw0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final HashMap f10579a = new HashMap();

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

    public dz0(lq0 lq0Var) {
        this.f10580b = lq0Var;
    }

    @Override // com.google.android.gms.internal.ads.xw0
    @Nullable
    public final yw0 zza(String str, JSONObject jSONObject) throws zzfjr {
        yw0 yw0Var;
        synchronized (this) {
            try {
                HashMap map = this.f10579a;
                yw0Var = (yw0) map.get(str);
                if (yw0Var == null) {
                    yw0Var = new yw0(this.f10580b.a(str, jSONObject), new tx0(), str);
                    map.put(str, yw0Var);
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return yw0Var;
    }
}
