v3.8.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Dec. 29, 2017
Dec. 30, 2016
Cash flows from operating activities    
Net income for the period $ 40,346 $ 48,058
Adjustments to reconcile net income to net cash provided by operating activities    
Depreciation and amortization 14,265 10,758
Loss on disposal of property, plant and equipment   19
Loss from sales and maturities of available-for-sale securities 357 15
Amortization of investment (premium) discount (163) 228
Amortization of deferred debt issuance costs 295 1,072
Allowance for doubtful accounts (reversal) 5 (40)
Unrealized loss (gain) on exchange rate and fair value of derivative instruments 1,740 (3,033)
Share-based compensation 12,378 14,208
Deferred income tax (153) 938
Other non-cash expenses 962 586
Inventory obsolescence (reversal) 654 (100)
Changes in operating assets and liabilities    
Trade accounts receivable 5,707 (40,779)
Inventory (1,047) (29,286)
Other current assets and non-current assets (6,801) 4,747
Trade accounts payable (33,626) 11,026
Income tax payable (791) 448
Other current liabilities and non-current liabilities 2,985 887
Net cash provided by operating activities 37,113 19,752
Cash flows from investing activities    
Purchase of marketable securities (48,679) (83,405)
Proceeds from sales of marketable securities 18,672 15,682
Proceeds from maturities of marketable securities 31,427 38,142
Payments in connection with business acquisition, net of cash acquired   (9,917)
Purchase of property, plant and equipment (21,405) (44,412)
Purchase of intangibles (689) (319)
Proceeds from disposal of property, plant and equipment 35 127
Net cash used in investing activities (20,639) (84,102)
Cash flows from financing activities    
Proceeds of short-term loans from banks 5,000 15,744
Repayment of short-term loans from bank (1,003)  
Repayment of long-term loans from bank (6,800) (9,800)
Repayment of capital lease liability (174) (92)
Repurchase of ordinary shares (9,910)  
Proceeds from issuance of ordinary shares under employee share option plans 990 5,848
Withholding tax related to net share settlement of restricted share units (3,744) (1,008)
Net cash (used in) provided by financing activities (15,641) 10,692
Net increase (decrease) in cash, cash equivalents and restricted cash 833 (53,658)
Movement in cash, cash equivalents and restricted cash    
Cash, cash equivalents and restricted cash at beginning of period 137,137 142,804
Increase (decrease) in cash, cash equivalents and restricted cash 833 (53,658)
Effect of exchange rate on cash, cash equivalents and restricted cash 284 (401)
Cash, cash equivalents and restricted cash at end of period 138,254 88,745
Non-cash investing and financing activities    
Construction, software-related and equipment-related payables $ 5,658 $ 17,094