XML 19 R8.htm IDEA: XBRL DOCUMENT v3.22.4
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Dec. 31, 2022
Dec. 31, 2021
OPERATING ACTIVITIES:    
Net income $ 360,583 $ 67,369
Reconciliation of net income to net cash provided by (used in) operating activities:    
Depreciation and amortization 17,196 15,681
Stock-based compensation expense 27,995 16,191
Allowance (recovery) for credit losses 1 (636)
Provision for excess and obsolete inventories 25,423 3,691
Share of loss (income) from equity investee 2,240 (627)
Foreign currency exchange (gain) (4,614) (2,738)
Deferred income taxes, net (25,812) 1,451
Other (430) 1,045
Changes in operating assets and liabilities:    
Accounts receivable, net (including changes in related party balances of $3,178 and $(25,854) during the six months ended December 31, 2022 and 2021, respectively) 68,035 (33,491)
Inventories 98,366 (356,399)
Prepaid expenses and other assets (including changes in related party balances of $(22,925) and $(11,165) during the six months ended December 31, 2022 and 2021, respectively) 518 (24,481)
Accounts payable (including changes in related party balances of $751 and $25,940 during the six months ended December 31, 2022 and 2021, respectively) (90,908) 83,188
Income taxes payable (3,030) 1,723
Deferred revenue 46,243 50,235
Accrued liabilities (including changes in related party balances of $851 and $1,501 during the six months ended December 31, 2022 and 2021, respectively) (44,092) (2,507)
Other long-term liabilities (including changes in related party balances of $(168) and $0 during the six months ended December 31, 2022 and 2021, respectively) (3,040) (7,417)
Net cash provided by (used in) operating activities 474,674 (187,722)
INVESTING ACTIVITIES:    
Purchases of property, plant and equipment (including payments to related parties of $4,514 and $1,770 during the six months ended December 31, 2022 and 2021, respectively) (20,631) (23,206)
Investment in a privately-held company 0 (1,100)
Net cash (used in) investing activities (20,631) (24,306)
FINANCING ACTIVITIES:    
Proceeds from borrowings 144,037 587,719
Repayment of debt (564,662) (367,295)
Proceeds from exercise of stock options, net of taxes 15,327 11,588
Payment of withholding tax on vesting of restricted stock units (10,504) (4,801)
Other (19) (38)
Net cash (used in) provided by financing activities (415,821) 227,173
Effect of exchange rate fluctuations on cash (1,693) (9)
Net increase in cash, cash equivalents and restricted cash 36,529 15,136
Cash, cash equivalents and restricted cash at the beginning of the period 268,559 233,449
Cash, cash equivalents and restricted cash at the end of the period 305,088 248,585
Supplemental disclosure of cash flow information:    
Cash paid for interest 6,084 1,765
Cash paid for taxes, net of refunds 96,156 7,270
Non-cash investing and financing activities:    
Unpaid property, plant and equipment purchases (including due to related parties of $1,764 and $2,312 as of December 31, 2022 and 2021, respectively) 3,333 11,140
Right of use ("ROU") assets obtained in exchange for operating lease commitments $ 1,024 $ 7,379