Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Cash flows from operating activities    
Net income (loss) $ 20,175 $ (107,721)
Adjustments to reconcile net income (loss) to net cash used in operating activities    
Depreciation and amortization 18,791 20,066
Provision for severance benefits 13,609 14,173
Amortization of debt issuance costs and original issue discount 527 491
Loss (gain) on foreign currency, net (38,182) 65,730
Restructuring gain (7,785)  
Stock-based compensation 2,966 2,370
Other 421 (352)
Changes in operating assets and liabilities    
Accounts receivable, net 977 8,672
Inventories, net (9,412) 11,302
Other receivables 20,214 7,115
Other current assets 510 669
Deferred tax assets 31 367
Accounts payable 7,088 (18,894)
Other accounts payable (4,764) (10,199)
Accrued expenses (22,087) (32,731)
Other current liabilities (3,869) (686)
Deferred revenue 2,662 (1,236)
Other non-current liabilities (1,412) 190
Payment of severance benefits (14,178) (7,905)
Other (213) 141
Net cash used in operating activities (13,931) (48,438)
Cash flows from investing activities    
Proceeds from settlement of hedge collateral 6,317 10,841
Payment of hedge collateral (2,494) (17,182)
Proceeds from disposal of plant, property and equipment 185 1,698
Purchase of plant, property and equipment (11,345) (4,250)
Payment for intellectual property registration (754) (550)
Collection of guarantee deposits 476 123
Payment of guarantee deposits (185) (670)
Other 9 179
Net cash used in investing activities (7,791) (9,811)
Cash flows from financing activities    
Proceeds from issuance of common stock 1,502 3,434
Net cash provided by financing activities 1,502 3,434
Effect of exchange rates on cash and cash equivalents 4,766 20,891
Net decrease in cash and cash equivalents (15,454) (33,924)
Cash and cash equivalents    
Beginning of the period 90,882 102,434
End of the period 75,428 68,510
Supplemental cash flow information    
Cash paid for interest 14,906 15,181
Cash paid for income taxes 635 438
Non-cash investing activities    
Property, plant and equipment additions in other accounts payable $ 1,738 $ 196