v3.21.2
Condensed Consolidated Statements of Cash Flows (unaudited) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2021
Jun. 30, 2020
CASH FLOWS FROM OPERATING ACTIVITIES:    
Net income (loss) $ 118,738 $ 72,982
Adjustments to reconcile net income to net cash flows from operating activities:    
Depreciation expense 22,003 18,037
Amortization expense of assets and liabilities, net 10,469 8,968
Accretion of convertible note discount 247 464
Amortization of marketable securities 1,441 111
Gain on sale of property, plant and equipment (39) (187)
(Gain) loss on debt extinguishment 4,449 (1,791)
Provision for doubtful accounts 16 509
Impairment of assets 1,738 0
Stock compensation expense 3,806 3,222
Deferred tax expense 2,382 1,855
Gain on lease termination 0 (4,459)
Other operating activities 103 123
Changes in assets and liabilities:    
Accounts receivable, net (26,518) 607,215
Inventories (155,050) 1,257
Prepaid expenses and other assets (50,293) (33,667)
Accounts payable 9,490 (183,887)
Accrued expenses and other liabilities (144) (17,718)
Operating lease obligations (9,420) (8,969)
Deferred revenue 4,103 (2,233)
Cash provided by (used in) operating activities (62,479) 461,832
CASH FLOWS FROM INVESTING ACTIVITIES:    
Cash paid for marketable securities (319,421) (179,476)
Cash received from maturities of marketable securities 135,222 0
Cash paid for purchase of property, plant and equipment (32,478) (31,048)
Other investing activities (1,500) 187
Cash used in investing activities (218,177) (210,337)
CASH FLOWS FROM FINANCING ACTIVITIES:    
Net repayments on revolving line of credit 0 (76,990)
Cash received from notes payable 550,000 0
Cash paid on notes payable (78,055) (73,051)
Cash paid for debt issuance costs (12,375) 0
Cash received from equity offering 385,250 0
Cash paid for equity offering costs (19,970) 0
Cash paid for conversion of restricted stock units and stock appreciation rights (20,435) (3,938)
Cash provided from (used in) financing activities 804,415 (153,979)
NET CHANGE IN CASH, CASH EQUIVALENTS AND RESTRICTED CASH 523,759 97,516
CASH, CASH EQUIVALENTS AND RESTRICTED CASH, Beginning of period 88,218 53,436
Effect of exchange rate changes on cash (223) (2)
CASH, CASH EQUIVALENTS AND RESTRICTED CASH, End of period 611,754 150,950
SUPPLEMENTAL DISCLOSURES OF CASH FLOWS INFORMATION:    
Cash paid for income taxes 2,808 0
Cash paid for interest 4,589 3,724
Leased assets obtained in exchange for new operating lease liabilities 12,980 1,873
Amounts included in period-end accounts payable for:    
Purchases of property, plant and equipment 10,514 4,467
Debt issuance cost $ 1,526 $ 0

Source