| | | | | | | | |
| | Years Ended | |
(in thousands of U. S. dollars) | | June 28, 2019 | | | June 29, 2018 | |
Cash flows from operating activities | | | | | | | | |
Net income | | $ | 120,955 | | | $ | 84,167 | |
Adjustments to reconcile net income to net cash provided by operating activities | | | | | | | | |
Depreciation and amortization | | | 29,944 | | | | 29,087 | |
(Gain) loss on disposal and impairment of property, plant and equipment | | | (4 | ) | | | 18 | |
Loss on disposal of intangibles | | | 149 | | | | 447 | |
Loss from sales and maturities ofavailable-for-sale securities | | | 135 | | | | 364 | |
Amortization of investment discount | | | (592 | ) | | | (506 | ) |
Amortization of deferred debt issuance costs | | | — | | | | 994 | |
Allowance for doubtful accounts (reversal) | | | 36 | | | | (23 | ) |
Unrealized (gain) loss on exchange rate and fair value of derivative | | | (6,980 | ) | | | 4,222 | |
Share-based compensation | | | 17,157 | | | | 22,581 | |
Deferred income tax | | | 879 | | | | (2,074 | ) |
Severance liabilities | | | 3,343 | | | | 1,801 | |
Othernon-cash expenses | | | (450 | ) | | | 332 | |
(Reversal of) Inventory obsolescence | | | (563 | ) | | | (436 | ) |
Changes in operating assets and liabilities | | | | | | | | |
Trade accounts receivable | | | (13,494 | ) | | | 17,852 | |
Contract assets | | | (2,570 | ) | | | — | |
Inventory | | | (44,035 | ) | | | (19,432 | ) |
Other current assets andnon-current assets | | | (186 | ) | | | (4,464 | ) |
Trade accounts payable | | | 38,807 | | | | 3,502 | |
Contract liabilities | | | 2,239 | | | | — | |
Income tax payable | | | 1,092 | | | | (1,267 | ) |
Other current liabilities andnon-current liabilities | | | 1,532 | | | | 915 | |
| | | | | | | | |
Net cash provided by operating activities | | | 147,394 | | | | 138,080 | |
| | | | | | | | |
Cash flows from investing activities | | | | | | | | |
Purchase of short-term investments | | | (233,080 | ) | | | (152,908 | ) |
Proceeds from sales of short-term investments | | | 99,142 | | | | 61,795 | |
Proceeds from maturities of short-term investments | | | 54,215 | | | | 67,417 | |
Payments in connection with business acquisition, net of cash acquired | | | — | | | | — | |
Purchase of property, plant and equipment | | | (18,661 | ) | | | (33,825 | ) |
Proceeds from disposal of property, plant and equipment | | | 599 | | | | 449 | |
Purchase of intangibles | | | (282 | ) | | | (1,577 | ) |
| | | | | | | | |
Net cash used in investing activities | | | (98,067 | ) | | | (58,649 | ) |
| | | | | | | | |
Cash flows from financing activities | | | | | | | | |
Proceeds of short-term loan from bank | | | — | | | | 5,000 | |
Repayment of short-term loan from bank | | | — | | | | (1,003 | ) |
Repayment of long-term loan from bank | | | (3,250 | ) | | | (11,212 | ) |
Proceeds from issuance of ordinary shares under employee share option plan | | | — | | | | 1,436 | |
Repayment of capital lease liability | | | (468 | ) | | | (417 | ) |
Repurchase of ordinary shares | | | (5,378 | ) | | | (42,401 | ) |
Release of restricted cash held in connection with business acquisition | | | (3,478 | ) | | | — | |
Withholding tax related to net share settlement of restricted share units | | | (10,649 | ) | | | (5,509 | ) |
| | | | | | | | |
Net cash used in financing activities | | | (23,223 | ) | | | (54,106 | ) |
| | |
Net increase in cash, cash equivalents and restricted cash | | $ | 26,104 | | | $ | 25,325 | |
| | | | | | | | |
Movement in cash, cash equivalents and restricted cash | | | | | | | | |
Cash, cash equivalents and restricted cash at beginning of period | | $ | 161,433 | | | $ | 137,137 | |
Increase (decrease) in cash, cash equivalents and restricted cash | | | 26,104 | | | | 25,325 | |
Effect of exchange rate on cash, cash equivalents and restricted cash | | | 704 | | | | (1,029 | ) |
| | | | | | | | |
Cash, cash equivalents and restricted cash at end of period | | $ | 188,241 | | | $ | 161,433 | |
| | | | | | | | |