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

import android.os.IBinder;
import android.os.IInterface;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;

/* JADX INFO: loaded from: classes2.dex */
public final class es {

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final g7.x f10911d = new g7.x();

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

    public es(ds dsVar) {
        sq qqVar;
        IBinder iBinder;
        this.f10908a = dsVar;
        tq tqVar = null;
        try {
            List listZzf = dsVar.zzf();
            if (listZzf != null) {
                for (Object obj : listZzf) {
                    if (!(obj instanceof IBinder) || (iBinder = (IBinder) obj) == null) {
                        qqVar = null;
                    } else {
                        IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.INativeAdImage");
                        qqVar = iInterfaceQueryLocalInterface instanceof sq ? (sq) iInterfaceQueryLocalInterface : new qq(iBinder);
                    }
                    if (qqVar != null) {
                        this.f10909b.add(new tq(qqVar));
                    }
                }
            }
        } catch (RemoteException unused) {
        }
        try {
            List listK = this.f10908a.k();
            if (listK != null) {
                for (Object obj2 : listK) {
                    n7.x1 x1VarR2 = obj2 instanceof IBinder ? n7.c3.R2((IBinder) obj2) : null;
                    if (x1VarR2 != null) {
                        this.f10912e.add(new xyz.stream.utils.e0(x1VarR2));
                    }
                }
            }
        } catch (RemoteException unused2) {
        }
        try {
            sq sqVarZzh = this.f10908a.zzh();
            if (sqVarZzh != null) {
                tqVar = new tq(sqVarZzh);
            }
        } catch (RemoteException unused3) {
        }
        this.f10910c = tqVar;
        try {
            if (this.f10908a.zzq() != null) {
                new vu0(this.f10908a.zzq());
            }
        } catch (RemoteException unused4) {
        }
    }

    @Nullable
    public final String zza() {
        try {
            return this.f10908a.zze();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Nullable
    public final String zzc() {
        try {
            return this.f10908a.zzg();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Nullable
    public final String zze() {
        try {
            return this.f10908a.zzi();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Nullable
    public final String zzf() {
        try {
            return this.f10908a.zzj();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Nullable
    public final Double zzg() {
        try {
            double dZzk = this.f10908a.zzk();
            if (dZzk == -1.0d) {
                return null;
            }
            return Double.valueOf(dZzk);
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Nullable
    public final String zzh() {
        try {
            return this.f10908a.zzl();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Nullable
    public final String zzi() {
        try {
            return this.f10908a.zzm();
        } catch (RemoteException unused) {
            return null;
        }
    }

    @Nullable
    public final Object zzk() {
        try {
            k8.a aVarD = this.f10908a.d();
            if (aVarD != null) {
                return k8.b.O(aVarD);
            }
            return null;
        } catch (RemoteException unused) {
            return null;
        }
    }
}
