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

import android.os.Bundle;
import org.json.JSONException;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public final class c51 implements m61 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f9742a;

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

    public /* synthetic */ c51(int i10, Bundle bundle) {
        this.f9742a = i10;
        this.f9743b = bundle;
    }

    @Override // com.google.android.gms.internal.ads.m61
    public final void zza(Object obj) {
        int i10 = this.f9742a;
        Bundle bundle = this.f9743b;
        switch (i10) {
            case 0:
                Bundle bundle2 = ((zd0) obj).f19235a;
                Bundle bundleA = mb1.a(bundle2, "device");
                bundleA.putBundle("android_mem_info", bundle);
                bundle2.putBundle("device", bundleA);
                break;
            default:
                JSONObject jSONObject = (JSONObject) obj;
                if (bundle != null) {
                    try {
                        p7.y.f("play_store", p7.y.f("device", jSONObject)).put("parental_controls", n7.x.f31085g.f31086a.d(bundle));
                    } catch (JSONException unused) {
                        p7.l0.g("Failed putting parental controls bundle.");
                    }
                }
                break;
        }
    }
}
