The mobile chip giant faced competition in the app processor market, and its licensing business faced trouble in China.