v3.6.0.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Dec. 30, 2016
Dec. 25, 2015
Cash flows from operating activities    
Net income for the period $ 48,058 $ 21,406
Adjustments to reconcile net income to net cash provided by operating activities    
Depreciation and amortization 10,758 8,294
Loss (gain) on disposal of property, plant and equipment 19 (49)
Loss from sales and maturities of available-for-sale securities 15 124
Amortization of investment premium 228 457
Amortization of deferred debt issuance costs 1,072 358
Reversal of allowance for doubtful accounts (40) (7)
Unrealized (gain) loss on exchange rate and fair value of derivative instruments (3,033) 5,566
Share-based compensation 14,208 5,783
Deferred income tax 938 413
Other non-cash expenses 586 765
Reversal of inventory obsolescence (100) (478)
Loss from written-off inventory due to flood loss   233
Changes in operating assets and liabilities    
Trade accounts receivable (40,779) (12,486)
Inventory (29,286) (10,004)
Other current assets and non-current assets 4,747 1,019
Trade accounts payable 11,026 (405)
Income tax payable 448 320
Other current liabilities and non-current liabilities 887 2,395
Net cash provided by operating activities 19,752 23,704
Cash flows from investing activities    
Purchase of marketable securities (83,405) (53,258)
Proceeds from sales of marketable securities 15,682 25,709
Proceeds from maturities of marketable securities 38,142 34,460
Payments in connection with business acquisition, net of cash acquired (9,917)  
Purchase of property, plant and equipment (44,412) (26,407)
Purchase of intangibles (319) (210)
Proceeds from disposal of property, plant and equipment 127 58
Net cash used in investing activities (84,102) (19,648)
Cash flows from financing activities    
Payment of debt issuance costs   (359)
Proceeds of short-term loans from banks 15,744 18,000
Repayment of long-term loans from bank (9,800) (3,000)
Repayment of capital lease liability (92)  
Proceeds from issuance of ordinary shares under employee share option plans 5,848 2,025
Withholding tax related to net share settlement of restricted share units (1,008) (1,711)
Net cash provided by financing activities 10,692 14,955
Net (decrease) increase in cash, cash equivalents and restricted cash (53,658) 19,011
Movement in cash, cash equivalents and restricted cash    
Cash, cash equivalents and restricted cash at beginning of period 142,804 112,978
Net (decrease) increase in cash, cash equivalents and restricted cash (53,658) 19,011
Effect of exchange rate on cash, cash equivalents and restricted cash (401) (630)
Cash, cash equivalents and restricted cash at end of period 88,745 131,359
Non-cash investing and financing activities    
Construction, software-related and equipment-related payables 17,094 6,657
Cash, cash equivalents and restricted cash $ 142,804 $ 112,978