When tech companies lay off large amounts of workers like this, they often immediately replace them with H1Bs. These layoffs are almost always cost-cutting measures, not caused by lack of work - the work is still there and still has to be done, they just don't want to pay expensive white people to do it.

https://www.newsweek.com/microsoft-layoffs-h1b-visa-applicat...

It makes no sense to lay off H1Bs only to immediately re-hire them afterwards.