XML 23 R9.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Cash flows from operating activities:      
Net income $ 145,449 $ 133,995 $ 161,148
Adjustments to reconcile net income to net cash provided by operating activities:      
Depreciation and amortization 32,439 18,103 14,119
Provision for doubtful accounts 477 425 217
Asset impairment 0 0 1,124
Non-cash interest expense 44,387 18,825 6,081
Financing fees on extinguishment of debt 0 0 2,152
Fees paid for repurchase and exchange of convertible notes due 2023 0 0 6,000
Loss on partial settlement of convertibles notes 56,497 3,037 0
Deemed repayment of convertible notes attributable to accreted debt discount (15,718) (3,132) 0
Gain on settlement of debt securities (6,569) 0 0
Change in fair value of debt securities (3,042) 0 0
Stock-based compensation 114,286 42,503 20,176
Change in fair value of derivatives 0 44,348 0
Deferred income taxes (31,241) (17,117) (73,375)
Changes in operating assets and liabilities:      
Accounts receivable (151,160) (34,321) (68,745)
Inventory (29,258) (9,708) (15,789)
Prepaid expenses and other assets (26,885) (14,636) (14,293)
Accounts payable, accrued and other liabilities 117,183 35,695 22,200
Warranty obligations 27,016 8,815 5,804
Deferred revenues 78,167 (10,498) 72,248
Net cash provided by operating activities 352,028 216,334 139,067
Cash flows from investing activities:      
Purchases of property and equipment (52,258) (20,558) (14,788)
Purchase of intangible asset (250) 0 0
Investments in private companies (58,000) (5,010) 0
Redemption of investment in private companies 26,569 0 0
Business acquisitions, net of cash acquired (235,652) 0 0
Purchases of marketable securities (934,956) 0 0
Maturities of marketable securities 35,000 0 0
Net cash used in investing activities (1,219,547) (25,568) (14,788)
Cash flows from financing activities:      
Issuance of convertible notes, net of issuance costs 1,188,439 312,420 127,413
Purchase of convertible note hedges (286,235) (89,056) (36,313)
Sale of warrants 220,800 71,552 29,818
Fees paid for repurchase and exchange of convertible notes due 2023 0 0 (6,000)
Principal payments and financing fees on debt (1,694) (2,575) (45,855)
Partial repurchase of convertible notes (290,247) (40,728) 0
Proceeds from exercise of equity awards and employee stock purchase plan 7,484 8,395 4,985
Repurchase of common stock (500,000) 0 0
Payment of withholding taxes related to net share settlement of equity awards (29,136) (68,330) (8,198)
Net cash provided by financing activities 309,411 191,678 65,850
Effect of exchange rate changes on cash and cash equivalents (1,955) 826 (257)
Net increase (decrease) in cash, cash equivalents and restricted cash (560,063) 383,270 189,872
Cash, cash equivalents and restricted cash—Beginning of period 679,379 296,109 106,237
Cash, cash equivalents and restricted cash—End of period 119,316 679,379 296,109
Reconciliation of cash, cash equivalents, and restricted cash to the consolidated balance sheets      
Cash and cash equivalents 119,316 679,379 251,409
Restricted cash 0 0 44,700
Total cash, cash equivalents, and restricted cash 119,316 679,379 296,109
Supplemental Cash Flow Information [Abstract]      
Cash paid for interest 733 1,875 2,689
Cash paid for income taxes 4,823 3,452 1,755
Supplemental disclosures of non-cash investing and financing activities:      
Purchases of fixed assets included in accounts payable 7,498 3,630 672
Contingent consideration in connection with the acquisition 3,500 0 0
Accrued interest payable unpaid upon exchange of convertible notes due 2023 $ 0 $ 0 $ 833