v3.26.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Cash flows from operating activities      
Net loss before equity method investment income (loss) $ (42,265) $ (96,976) $ (11,081)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation and amortization 57,251 62,396 53,757
Equity method investment income (loss) (834) 77,805 4,789
Gain on recovery of privately-held investment (290) 0 0
Share-based compensation expense 26,678 29,569 21,641
Deferred income taxes, net (9,287) (13,274) (880)
Loss on disposal of property and equipment 54 80 78
Impairment of property and equipment 334 1,045 0
Impairment of privately-held investment 0 100 0
Changes in operating assets and liabilities:      
Accounts receivable (8,026) (22,226) 9,873
Inventories (11,707) 6,073 (12,503)
Other current and long-term assets 1,395 (465) 1,927
Payable related to equity investee, net (7,115) 2,127 1,731
Accounts payable (12,110) 13,289 (2,406)
Income taxes payable 1,634 (399) (1,974)
Deferred revenue 726 (2,591) (5,482)
Accrued and other liabilities (12,758) (26,885) (33,760)
Net cash (used in) provided by operating activities (16,320) 29,668 25,710
Cash flows from investing activities      
Proceeds from sale of equity interest in the JV Company 147,652 0 0
Purchases of property and equipment (51,752) (37,180) (37,088)
Purchases of intangible assets (569) 0 0
Proceeds from sale of property and equipment 11 61 383
Proceeds from sale of privately-held investment 290 0 0
Government grants related to equipment 145 678 961
Loan receivable from suppliers (9,677) 0 0
Net cash provided by (used in) investing activities 86,100 (36,441) (35,744)
Cash flows from financing activities      
Withholding tax on restricted stock units (7,518) (10,698) (7,678)
Proceeds from exercise of stock options and ESPP 7,997 7,801 10,114
Payments for repurchase of common shares (18,156) 0 0
Repayments of borrowings (23,121) (11,664) (11,472)
Principal payments on finance leases (1,007) (935) (867)
Net cash used in financing activities (41,805) (15,496) (9,903)
Effect of exchange rate changes on cash, cash equivalents and restricted cash (48) 227 (126)
Net increase (decrease) in cash, cash equivalents and restricted cash 27,927 (22,042) (20,063)
Cash, cash equivalents and restricted cash at beginning of year 153,498 175,540 195,603
Cash, cash equivalents and restricted cash at end of year 181,425 153,498 175,540
Supplemental disclosures of cash flow information:      
Cash paid for interest 1,079 2,920 2,564
Cash paid for income taxes 17,485 4,615 5,758
Supplemental disclosures of non-cash investing and financing information:      
Property and equipment purchased but not yet paid 10,840 10,574 7,381
Reissuance of treasury stock 148 155 152
Cash, Cash Equivalent, Restricted Cash, and Restricted Cash Equivalent, Continuing Operation [Abstract]      
Cash and cash equivalents 180,771 153,079 175,127
Restricted cash 654 419 413
Total cash, cash equivalents, and restricted cash $ 181,425 $ 153,498 $ 175,540