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

import android.text.TextUtils;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import org.json.JSONException;
import org.json.JSONObject;

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

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

    @Nullable
    @VisibleForTesting
    final String zza;

    public m71(@Nullable String str, int i10) {
        this.zza = str;
        this.f13995a = i10;
    }

    @Override // com.google.android.gms.internal.ads.m61
    public final void zza(Object obj) {
        int i10;
        String str = this.zza;
        JSONObject jSONObject = (JSONObject) obj;
        if (TextUtils.isEmpty(str) || (i10 = this.f13995a) == -1) {
            return;
        }
        try {
            JSONObject jSONObjectF = p7.y.f("pii", jSONObject);
            jSONObjectF.put("pvid", str);
            jSONObjectF.put("pvid_s", i10);
        } catch (JSONException unused) {
            p7.l0.h();
        }
    }
}
