XML 29 R8.htm IDEA: XBRL DOCUMENT v3.24.2.u1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2024
Jun. 30, 2023
Jun. 30, 2022
Cash flows from operating activities      
Net income (loss) before loss from equity method investment $ (11,081) $ 12,364 $ 453,183
Adjustments to reconcile net income (loss) to net cash provided by operating activities:      
Gain on deconsolidation of the JV Company 0 0 (399,093)
Loss on changes of equity interest in the JV Company, net 0 0 3,140
Deferred income tax on deconsolidation and changes of equity interest in the JV Company 0 0 29,973
Depreciation and amortization 53,757 43,207 42,851
Equity method investment loss from equity investee 4,789 1,411 2,629
Share-based compensation expense 21,641 37,488 31,324
Deferred income taxes, net (880) (1,418) 1,592
Loss on disposal of property and equipment 78 182 18
Changes in assets and liabilities:      
Accounts receivable 9,873 43,262 (30,085)
Inventories (12,503) (25,207) (57,416)
Other current and long-term assets 1,927 (18,695) (9,408)
Payable related to equity investee, net 1,731 (17,038) 48,192
Accounts payable (2,406) (19,568) 23,755
Income taxes payable (1,974) 1,957 (1,687)
Income taxes payable on deconsolidation and changes of equity interest in the JV Company 0 0 3,490
Increase (decrease) in deferred revenue (5,482) 8,073 0
Accrued and other liabilities (33,760) (45,545) 76,407
Net cash provided by operating activities 25,710 20,473 218,865
Cash flows from investing activities      
Proceeds from sale of equity interest in the JV Company 0 0 26,347
Deconsolidation of cash and cash equivalents of the JV Company 0 0 (20,734)
Purchases of property and equipment (37,088) (110,428) (138,014)
Proceeds from sale of property and equipment 383 167 135
Government grants related to equipment 961 631 1,444
Net cash used in investing activities (35,744) (109,630) (130,822)
Cash flows from financing activities      
Withholding tax on restricted stock units (7,678) (6,381) (8,641)
Proceeds from exercise of stock options and ESPP 10,114 8,978 6,143
Payments for repurchase of common shares 0 (13,432) 0
Proceeds from borrowings 0 8,632 64,276
Repayments of borrowings (11,472) (26,598) (35,748)
Principal payments on finance leases (867) (810) (4,176)
Net cash provided by (used in) financing activities (9,903) (29,611) 21,854
Effect of exchange rate changes on cash, cash equivalents and restricted cash (126) (280) (59)
Net increase (decrease) in cash, cash equivalents and restricted cash (20,063) (119,048) 109,838
Cash, cash equivalents and restricted cash at beginning of year 195,603 314,651 204,813
Cash, cash equivalents and restricted cash at end of year 175,540 195,603 314,651
Supplemental disclosures of cash flow information:      
Cash paid for interest 2,564 3,711 3,404
Cash paid for income taxes 5,758 1,537 5,768
Supplemental disclosures of non-cash investing and financing information:      
Property and equipment purchased but not yet paid 7,381 12,715 62,165
Reissuance of treasury stock 152 67 64
Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents [Abstract]      
Cash and cash equivalents 175,127 195,188 314,352
Restricted cash 413 415 299
Total cash, cash equivalents, and restricted cash $ 175,540 $ 195,603 $ 314,651