World’s biggest chipmaker faces less efficient operations in US and Japan but gets boost from AI demand