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

import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import com.google.android.gms.ads.nativead.NativeAd;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;

/* JADX INFO: loaded from: classes2.dex */
public final class dy extends NativeAd {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final ArrayList f10553b = new ArrayList();

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final ArrayList f10554c = new ArrayList();

    @Nullable
    private final cy zzc;

    @Nullable
    private final com.google.android.gms.ads.nativead.a zzd;

    public dy(ds dsVar) {
        sq sqVarZzh;
        new AtomicLong();
        this.f10552a = dsVar;
        ay ayVar = null;
        try {
            List listZzf = dsVar.zzf();
            if (listZzf != null) {
                for (Object obj : listZzf) {
                    sq sqVarR2 = obj instanceof IBinder ? rq.R2((IBinder) obj) : null;
                    if (sqVarR2 != null) {
                        this.f10553b.add(new cy(sqVarR2));
                    }
                }
            }
        } catch (RemoteException unused) {
        }
        try {
            List listK = this.f10552a.k();
            if (listK != null) {
                for (Object obj2 : listK) {
                    n7.x1 x1VarR2 = obj2 instanceof IBinder ? n7.c3.R2((IBinder) obj2) : null;
                    if (x1VarR2 != null) {
                        this.f10554c.add(new xyz.stream.utils.e0(x1VarR2));
                    }
                }
            }
        } catch (RemoteException unused2) {
        }
        try {
            sqVarZzh = this.f10552a.zzh();
        } catch (RemoteException unused3) {
        }
        cy cyVar = sqVarZzh != null ? new cy(sqVarZzh) : null;
        this.zzc = cyVar;
        try {
            if (this.f10552a.zzq() != null) {
                ayVar = new ay(this.f10552a.zzq());
            }
        } catch (RemoteException unused4) {
        }
        this.zzd = ayVar;
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final com.google.android.gms.ads.nativead.a getAdChoicesInfo() {
        return this.zzd;
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final String getAdvertiser() {
        try {
            return this.f10552a.zzj();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final String getBody() {
        try {
            return this.f10552a.zzg();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final String getCallToAction() {
        try {
            return this.f10552a.zzi();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final String getHeadline() {
        try {
            return this.f10552a.zze();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final com.google.android.gms.ads.nativead.b getIcon() {
        return this.zzc;
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final g7.l getMediaContent() {
        try {
            ds dsVar = this.f10552a;
            if (dsVar.zzF() != null) {
                return new n7.f3(dsVar.zzF(), null);
            }
        } catch (RemoteException unused) {
        }
        return null;
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final String getPrice() {
        try {
            return this.f10552a.zzm();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final g7.u getResponseInfo() {
        n7.m2 m2VarZzH;
        try {
            m2VarZzH = this.f10552a.zzH();
        } catch (RemoteException unused) {
            m2VarZzH = null;
        }
        return g7.u.zzb(m2VarZzH);
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final Double getStarRating() {
        try {
            double dZzk = this.f10552a.zzk();
            if (dZzk == -1.0d) {
                return null;
            }
            return Double.valueOf(dZzk);
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final String getStore() {
        try {
            return this.f10552a.zzl();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    public final void recordEvent(Bundle bundle) {
        try {
            this.f10552a.B1(bundle);
        } catch (RemoteException unused) {
        }
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    public final void setOnPaidEventListener(@Nullable g7.n nVar) {
        try {
            this.f10552a.c0(new n7.o3(nVar));
        } catch (RemoteException unused) {
        }
    }

    @Override // com.google.android.gms.ads.nativead.NativeAd
    @Nullable
    public final /* bridge */ /* synthetic */ Object zza() {
        try {
            return this.f10552a.c();
        } catch (RemoteException unused) {
            return null;
        }
    }
}
