After quarters of doom and gloom among Qualcomm investors, about the financial cost and even existential risk created by the war with Apple, the tables are completely turned. The two companies have settled, with Qualcomm clearly coming out best; the chip provider has its iPhone contract back and has seen yet another challenger to its modem crown, Intel, driven off. Meanwhile, Apple has turned in its worst iPhone quarter, with a 17% drop in the revenues from its core product. The decline is far worse than the 4% fall that the entire smartphone market experienced last year, and Apple has already been overtaken as the number two handset vendor by Huawei. Not that these smartphone trends are good for Qualcomm…