XML 16 R7.htm IDEA: XBRL DOCUMENT v3.22.2.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Cash flows from operating activities:    
Net income (loss) $ 242,641 $ (55,146)
Less: Income from operations of discontinued operations, net of tax 400,499 36,673
Adjustments to reconcile net income (loss) to net cash used in operating activities:    
Stock-based compensation 16,658 20,881
Amortization of premium on investment debt securities 716 3,384
Amortization of deferred financing costs 2,242 1,990
Write-off of fixed assets 2,400  
Depreciation 491 2,430
Non-cash operating lease cost 1,435 3,541
Accretion of debt discount   21,885
Loss (gain) on early extinguishment of debt 91,739 (16,511)
Gain on lease termination (1,101)  
Provision for allowance on credit losses   (8)
Changes in operating assets:    
Accounts receivable 2,169 (518)
Prepaid expenses and other current assets 442 648
Inventory 232 190
Security deposits 3,157 345
Other assets 32  
Changes in operating liabilities:    
Accounts payable, accrued expenses and other current liabilities 13,791 (26,003)
Operating lease liabilities (1,479) (4,550)
Interest payable (6,357) (2,021)
Net cash used in operating activities - continuing operations (31,291) (86,136)
Net cash provided by operating activities - discontinued operations 9,317 39,895
Net cash used in operating activities (21,974) (46,241)
Cash flows from investing activities:    
Purchases of investment debt securities (401,069) (278,438)
Sales and maturities of investment debt securities 355,485 334,233
Purchases of equipment, leasehold improvements, and furniture and fixtures (865) (397)
Net cash (used in) provided by investing activities - continuing operations (46,449) 55,398
Net cash provided by investing activities - discontinued operations 363,233  
Net cash provided by investing activities 316,784 55,398
Cash flows from financing activities:    
Payments for repurchases of convertible senior notes (261,562) 57
Proceeds from exercise of options, net 433 18
Payments of employee withholding taxes related to stock-based awards (480) (1,589)
Payments of debt issuance costs (35)  
Payments for repurchase of common stock   (75,825)
Proceeds from issuance of Notes   117,551
Proceeds from terminations of capped call options   (38,129)
Net cash (used in) provided by financing activities - continuing operations (261,644) 2,083
Net cash (used in) provided by financing activities (261,644) 2,083
Effect of exchange rate changes on cash, cash equivalents and restricted cash (7,399) 71
Net increase in cash, cash equivalents and restricted cash 25,767 11,311
Cash, cash equivalents and restricted cash at beginning of period 94,409 65,654
Cash, cash equivalents and restricted cash at end of period 120,176 76,965
Less: Cash, cash equivalents and restricted cash of discontinued operations   1,622
Cash, cash equivalents and restricted cash of continuing operations $ 120,176 $ 75,343