Toyota to cut output by nearly 40,000 for Mideast-bound vehicles