XML 20 R8.htm IDEA: XBRL DOCUMENT v3.25.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Cash flows from operating activities:    
Net income (loss) $ 66,782 $ (5,264)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation and amortization 40,000 40,621
Net amortization of premium on marketable securities 2,278 1,795
Provision for credit losses 192 1,767
Asset impairment 1,565 6,573
Non-cash interest expense 2,507 4,289
Net loss from change in fair value of debt securities 9,141 989
Stock-based compensation 109,529 113,590
Deferred income taxes 8,963 (22,368)
Changes in operating assets and liabilities:    
Accounts receivable 10,441 159,542
Inventory (8,012) 37,527
Prepaid expenses and other assets (139,814) (53,707)
Accounts payable, accrued and other liabilities 91,444 (90,228)
Warranty obligations 13,197 (11,908)
Deferred revenues (133,170) (6,955)
Net cash provided by operating activities 75,043 176,263
Cash flows from investing activities:    
Purchases of property and equipment (22,867) (17,007)
Investment in tax equity fund (8,344) 0
Purchases of marketable securities (485,132) (772,321)
Maturities and sale of marketable securities 578,218 779,436
Net cash provided by (used in) investing activities 61,875 (9,892)
Cash flows from financing activities:    
Settlement of Notes due 2025 (102,168) (2)
Proceeds from issuance of common stock under employee equity plans 5,369 7,955
Payment of withholding taxes related to net share settlement of equity awards (14,974) (67,515)
Repurchase of common stock (129,957) (141,904)
Net cash used in financing activities (241,730) (201,466)
Effect of exchange rate changes on cash, cash equivalents and restricted cash 11,232 (1,551)
Net decrease in cash, cash equivalents and restricted cash (93,580) (36,646)
Cash, cash equivalents and restricted cash — Beginning of period 464,116 288,748
Cash, cash equivalents and restricted cash — End of period 370,536 252,102
Supplemental disclosures of non-cash investing activities:    
Purchases of property and equipment through tenant improvement allowance 855 0
Purchases of property and equipment included in accounts payable $ 4,560 $ 5,008