You'll be more the wiser from this point on. Good luck to you. I was given two offers, and accepted one of them last week. We had those in the '80s too. This isn't corporations playing chess with their employees.
Corporations take risks, start new product lines, hire people, and sometimes fail.
It would be great if this could be done without layoffs, but I'd rather be part of a corporation that takes risks than a conservative, no-layoff Japanese company that slowly digs itself a grave. Engineering is a profession. This means you are responsible for your own career and success. Don't let yourself be jerked around by your employer. Understand the risks and rewards of every job, and accept offers with your eyes open.