I doubt Apple would be able to complete that sale without antitrust laws kicking back hard. Qualcomm is an exclusive supplier to most of Apple’s phone competitors.
That said, if they were especially clever they could engineer a buyout where a neutral party like Broadcom gets the company and Apple gets the patent portfolio—which would represent the overwhelming majority of Qualcomm's market value.