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

import android.os.Bundle;

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

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final boolean f18657d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final boolean f18658e;

    public y41(String str, boolean z10, boolean z11, boolean z12, boolean z13) {
        this.f18654a = str;
        this.f18655b = z10;
        this.f18656c = z11;
        this.f18657d = z12;
        this.f18658e = z13;
    }

    @Override // com.google.android.gms.internal.ads.m61
    public final void zza(Object obj) {
        Bundle bundle = ((zd0) obj).f19235a;
        String str = this.f18654a;
        if (!str.isEmpty()) {
            bundle.putString("inspector_extras", str);
        }
        boolean z10 = this.f18655b;
        bundle.putInt("test_mode", z10 ? 1 : 0);
        boolean z11 = this.f18656c;
        bundle.putInt("linked_device", z11 ? 1 : 0);
        if (z10 || z11) {
            tn tnVar = ao.f9120va;
            n7.y yVar = n7.y.f31093e;
            if (((Boolean) yVar.f31096c.b(tnVar)).booleanValue()) {
                bundle.putInt("risd", !this.f18657d ? 1 : 0);
            }
            if (((Boolean) yVar.f31096c.b(ao.f9186za)).booleanValue()) {
                bundle.putBoolean("collect_response_logs", this.f18658e);
            }
        }
    }

    @Override // com.google.android.gms.internal.ads.m61
    public final void zzb(Object obj) {
        Bundle bundle = ((zd0) obj).f19236b;
        String str = this.f18654a;
        if (!str.isEmpty()) {
            bundle.putString("inspector_extras", str);
        }
        boolean z10 = this.f18655b;
        bundle.putInt("test_mode", z10 ? 1 : 0);
        boolean z11 = this.f18656c;
        bundle.putInt("linked_device", z11 ? 1 : 0);
        if (z10 || z11) {
            if (((Boolean) n7.y.f31093e.f31096c.b(ao.f9186za)).booleanValue()) {
                bundle.putBoolean("collect_response_logs", this.f18658e);
            }
        }
    }
}
