The world’s largest contract chip maker said third-quarter net profit declined 25% from a year earlier.