package rj;

import android.os.IBinder;
import android.os.IInterface;

/* loaded from: classes3.dex */
public abstract class x extends u implements y {
    public static y V(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.play.core.assetpacks.protocol.IAssetModuleService");
        return queryLocalInterface instanceof y ? (y) queryLocalInterface : new w(iBinder);
    }
}
