Generally speaking you can’t sell what you don’t have and you can’t set up an artificial scheme to make it seem like you’ve sold something when you haven’t. See eg Icebreaker LLP structures (and subsequent enforcement). Ymmv/speak to tax counsel
I can’t picture a legal entity giving itself something it already owns meets the definition of a sale or a transfer. And if it did I’m not sure it would accomplish your tax planning goals. Tax regulators tend to plan against clever hijinks.