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

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import com.google.android.gms.dynamite.descriptors.com.google.android.gms.ads.dynamite.ModuleDescriptor;

/* JADX INFO: loaded from: classes2.dex */
public final class jy extends yi implements ly {
    public final iy w1(k8.b bVar, wv wvVar) {
        iy hyVar;
        Parcel parcelO = O();
        aj.d(parcelO, bVar);
        aj.d(parcelO, wvVar);
        parcelO.writeInt(ModuleDescriptor.MODULE_VERSION);
        Parcel parcelB0 = B0(1, parcelO);
        IBinder strongBinder = parcelB0.readStrongBinder();
        if (strongBinder == null) {
            hyVar = null;
        } else {
            IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.offline.IOfflineUtils");
            hyVar = iInterfaceQueryLocalInterface instanceof iy ? (iy) iInterfaceQueryLocalInterface : new hy(strongBinder);
        }
        parcelB0.recycle();
        return hyVar;
    }
}
