(Unaudited, in thousands, except per share amounts)
Three Months Ended June 30, | Six Months Ended June 30, | |||||||||||||||
2022 | 2021 | 2022 | 2021 | |||||||||||||
Revenue | $ | 461,004 | $ | 293,317 | $ | 838,718 | $ | 547,772 | ||||||||
Cost of revenue | 190,043 | 129,102 | 348,877 | 242,498 | ||||||||||||
Gross profit | 270,961 | 164,215 | 489,841 | 305,274 | ||||||||||||
Operating expenses: | ||||||||||||||||
Research and development | 57,131 | 44,753 | 111,234 | 86,645 | ||||||||||||
Selling, general and administrative | 70,668 | 57,238 | 137,822 | 108,691 | ||||||||||||
Litigation expense | 1,274 | 1,596 | 2,763 | 3,224 | ||||||||||||
Total operating expenses | 129,073 | 103,587 | 251,819 | 198,560 | ||||||||||||
Operating income | 141,888 | 60,628 | 238,022 | 106,714 | ||||||||||||
Other income (expense), net | (5,092 | ) | 3,031 | (5,726 | ) | 5,618 | ||||||||||
Income before income taxes | 136,796 | 63,659 | 232,296 | 112,332 | ||||||||||||
Income tax expense | 22,117 | 8,490 | 38,051 | 11,750 | ||||||||||||
Net income | $ | 114,679 | $ | 55,169 | $ | 194,245 | $ | 100,582 | ||||||||
Net income per share: | ||||||||||||||||
Basic | $ | 2.46 | $ | 1.20 | $ | 4.17 | $ | 2.20 | ||||||||
Diluted | $ | 2.37 | $ | 1.16 | $ | 4.02 | $ | 2.11 | ||||||||
Weighted-average shares outstanding: | ||||||||||||||||
Basic | 46,675 | 45,796 | 46,550 | 45,647 | ||||||||||||
Diluted | 48,286 | 47,754 | 48,268 | 47,732 |