For Microsoft a pretty decent chunk of the laid off staff came from game studios the company owns such as 343 Industries and Bethesda, which now leaves me feeling really conflicted about the Activision-Blizzard acquisition because I've stated I want it to happen because I felt it would only benefit the people working for those studios after years of poor conditions with upper management, but now I'm starting to feel like doing a 180 on that. Former 343 staffers have also been coming forward about how bad the leadership in the company has been and why that's a big reason for Halo's troubles this past decade.
For Google, I can't find anything that says which departments got hit hardest, but with Stadia having been shut down this past week I can only imagine Google probably laid off a large amount of the people in charge of their cloud and gaming divisions.