XML 43 R8.htm IDEA: XBRL DOCUMENT v3.22.0.1
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Dec. 31, 2021
Dec. 31, 2020
OPERATING ACTIVITIES:    
Net income $ 67,369 $ 54,275
Reconciliation of net income to net cash provided by operating activities:    
Depreciation and amortization 15,681 14,427
Stock-based compensation expense 16,191 13,623
Recovery of allowance for doubtful accounts (636) (476)
Provision for excess and obsolete inventories 3,691 1,740
Share of (income) loss from equity investee (627) 145
Foreign currency exchange (gain) loss (2,738) 2,905
Deferred income taxes, net 1,451 (883)
Other 1,045 (699)
Changes in operating assets and liabilities:    
Accounts receivable, net (including changes in related party balances of $(25,854) and $(6,304) during the six months ended December 31, 2021 and 2020, respectively) (33,491) 81,156
Inventories (356,399) 42,327
Prepaid expenses and other assets (including changes in related party balances of $(11,165) and $7,629 during the six months ended December 31, 2021 and 2020, respectively) (24,481) 27,426
Accounts payable (including changes in related party balances of $25,940 and $(24,112) during the six months ended December 31, 2021 and 2020, respectively) 83,188 (25,296)
Income taxes payable 1,723 5,855
Deferred revenue 50,235 (8,864)
Accrued liabilities (including changes in related party balances of $1,501 and $(4,867) during the six months ended December 31, 2021 and 2020, respectively) (2,507) (20,619)
Other long-term liabilities (including changes in related party balances of $0 and $(1,671) during the six months ended December 31, 2021 and 2020, respectively) (7,417) (3,240)
Net cash provided by (used in) operating activities (187,722) 183,802
INVESTING ACTIVITIES:    
Purchases of property, plant and equipment (including payments to related parties of $1,770 and $3,058 during the six months ended December 31, 2021 and 2020, respectively) (23,206) (25,551)
Investment in a privately-held company (1,100) 0
Net cash used in investing activities (24,306) (25,551)
FINANCING ACTIVITIES:    
Proceeds from borrowings, net of debt issuance costs 587,719 14,669
Repayment of debt (367,295) (537)
Proceeds from exercise of stock options, net of taxes 11,588 10,767
Payment of withholding tax on vesting of restricted stock units (4,801) (3,718)
Stock repurchases 0 (74,824)
Payments of obligations under finance leases (38) (54)
Net cash provided by (used in) by financing activities 227,173 (53,697)
Effect of exchange rate fluctuations on cash (9) 540
Net increase in cash, cash equivalents and restricted cash 15,136 105,094
Cash, cash equivalents and restricted cash at the beginning of the period 233,449 212,390
Cash, cash equivalents and restricted cash at the end of the period 248,585 317,484
Supplemental disclosure of cash flow information:    
Cash paid for interest 1,765 950
Cash paid for taxes, net of refunds 7,270 (698)
Non-cash investing and financing activities:    
Unpaid property, plant and equipment purchases (including due to related parties of $2,312 and $3,056 as of December 31, 2021 and 2020, respectively) 11,140 11,596
Right of use ("ROU") assets obtained in exchange for operating lease commitments 7,379 2,693
Unpaid stock repurchases $ 0 $ 2,164