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

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import java.util.Map;

/* JADX INFO: loaded from: classes2.dex */
public abstract class rq extends zi implements sq {
    public static sq R2(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.ads.internal.formats.client.INativeAdImage");
        return iInterfaceQueryLocalInterface instanceof sq ? (sq) iInterfaceQueryLocalInterface : new qq(iBinder);
    }

    @Override // com.google.android.gms.internal.ads.zi
    public final boolean Q2(int i10, Parcel parcel, Parcel parcel2) throws RemoteException {
        switch (i10) {
            case 1:
                k8.a aVarZzb = ((hq) this).zzb();
                parcel2.writeNoException();
                aj.d(parcel2, aVarZzb);
                return true;
            case 2:
                parcel2.writeNoException();
                aj.c(parcel2, ((hq) this).f12238b);
                return true;
            case 3:
                parcel2.writeNoException();
                parcel2.writeDouble(((hq) this).f12239c);
                return true;
            case 4:
                parcel2.writeNoException();
                parcel2.writeInt(((hq) this).f12240d);
                return true;
            case 5:
                parcel2.writeNoException();
                parcel2.writeInt(((hq) this).f12241e);
                return true;
            case 6:
                Map mapZzg = zzg();
                parcel2.writeNoException();
                parcel2.writeMap(mapZzg);
                return true;
            default:
                return false;
        }
    }

    @Nullable
    public abstract /* synthetic */ Map zzg() throws RemoteException;
}
