Slowing global growth left Caterpillar crawling towards bad earnings