XML 17 R7.htm IDEA: XBRL DOCUMENT v3.24.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Cash flows from operating activities    
Net income (loss) including noncontrolling interest $ 2,863 $ 32,375
Adjustments to reconcile net income to net cash provided by (used in) operating activities:    
Depreciation and amortization 26,524 20,156
Equity method investment income (loss) from equity investee 3,409 (3,013)
Share-based compensation expense 9,609 23,687
Deferred income taxes, net (880) (1,595)
Loss on disposal of property and equipment 42 383
Changes in operating assets and liabilities    
Accounts receivable (9,504) 12,458
Inventories (8,462) (5,783)
Other current and long-term assets (10,688) (8,437)
Accounts payable (3,206) (14,073)
Net payable, equity investee 1,015 (7,418)
Income taxes payable (759) 1,440
Increase in deferred revenue (4,358) 0
Accrued and other liabilities (15,233) (13,165)
Net cash provided by (used in) operating activities (9,628) 37,015
Cash flows from investing activities    
Purchases of property and equipment (22,030) (68,593)
Proceeds from sale of property and equipment 150 27
Government grant related to equipment 449 631
Net cash used in investing activities (21,431) (67,935)
Cash flows from financing activities    
Withholding tax on restricted stock units (602) (596)
Proceeds from exercise of stock options and ESPP 4,595 4,099
Proceeds from borrowings 0 8,632
Repayments of borrowings (5,713) (7,209)
Principal payments on finance leases (426) (400)
Net cash provided by (used in) financing activities (2,146) 4,526
Effect of exchange rate changes on cash, cash equivalents and restricted cash 80 (164)
Net decrease in cash, cash equivalents and restricted cash (33,125) (26,558)
Cash, cash equivalents and restricted cash at beginning of period 195,603 314,651
Cash, cash equivalents and restricted cash at end of period 162,478 288,093
Supplemental disclosures of non-cash investing and financing information:    
Property and equipment purchased but not yet paid 4,127 17,391
Reconciliation of cash, cash equivalents, and restricted cash:    
Cash and cash equivalents 162,266 287,805
Restricted cash 212 288
Total cash, cash equivalents, and restricted cash $ 162,478 $ 288,093