The news was grim across corporate America in 2022, with interest rates soaring and the economic outlook cloudy. That was especially true of the tech industry, where stock prices were tumbling and startups and giants were retrenching and rolling out mass layoffs.

But that didn’t prevent tech companies from gaining a tight grip on the top slots in Corporate Counsel and ALM Intelligence’s 2023 General Counsel Compensation Report, based on Securities and Exchange Commission pay disclosures of the Fortune 1000 for fiscal 2022.