Companies will cut you in a random layoff at the drop of a hat. I've seen this enough times in my career. It doesn't matter if they promise its the only/last/whatever cutoff, or it was for performance only, or whatever..
People in your network will pick you up and refer you / hire you on at the next gig.
My prior employer just did a wave of deep cuts and the stories I heard out of management were pretty crazy. Directory level people were basically given an hour to cut $X Million off their people budget from their directs and all their skip level staff. They then begin laying them off the same day. This was not a well planned or thought out process. So obviously the people I saw getting laid off were a mix of underperformerss, great-but-expensive, random personal grudges from the director, and unfortunately biased towards a lot of "lifers" who'd been there a long time.