XML 25 R5.htm IDEA: XBRL DOCUMENT v3.7.0.1
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Mar. 31, 2017
Mar. 31, 2016
Cash flows from operating activities    
Net loss $ (24,324) $ (18,297)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:    
Depreciation and amortization 13,848 13,644
Share-based compensation 9,985 9,446
Amortization of debt issuance costs 1,165 1,279
Amortization and accretion of discount and premium on investments 70 731
Accretion of interest on debt 2,117 5,155
(Recovery of) provision for bad debt, net (64) 162
Provision for write-down of inventories 1,131 1,472
Loss on disposal of property and equipment 4 11
Loss on extinguishment of debt   965
Changes in assets and liabilities:    
Accounts receivable (30,649) (10,294)
Inventories (2,386) (11,335)
Prepaid expenses and other assets (1,439) (3,993)
Deferred cost of revenue 2,474 (1,941)
Accounts payable 8,249 8,724
Accrued liabilities 1,578 1,289
Customer advances (2,914) 268
Deferred revenues (2,907) 13,808
Net cash (used in) provided by operating activities (24,062) 11,094
Cash flows from investing activities    
Purchases of property and equipment, net (3,619) (5,885)
Purchases of investments (14,992) (52,712)
Sales and maturities of investments 38,179 45,695
Net cash provided by (used in) investing activities 19,568 (12,902)
Cash flows from financing activities    
Proceeds from employee stock plans 3,075 2,950
Taxes paid related to net share settlement of equity awards (841) (3,045)
Payments made to note and loan holders (43,658) (65,531)
Proceeds from debt, net of costs   64,632
Net cash used in financing activities (41,424) (994)
Effect of exchange rate changes on cash and cash equivalents (1,806) (244)
Net decrease in cash, cash equivalents and restricted cash (47,724) (3,046)
Cash, cash equivalents and restricted cash at beginning of period 122,133 84,709
Cash, cash equivalents and restricted cash at end of period $ 74,409 $ 81,663