Quarterly report pursuant to Section 13 or 15(d)

Condensed Consolidated Statements of Cash Flows

v3.5.0.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2016
Jun. 30, 2015
Operating activities    
Net loss $ (191,435) $ (64,322)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities    
Depreciation and amortization 27,637 9,365
Stock-based compensation 71,087 50,679
Amortization of premium on investments, net 247 1,229
Other operating activities 1,474 944
Amortization of debt discount 8,938 0
Changes in operating assets and liabilities    
Accounts receivable 12,139 (16,123)
Prepaid expenses and other assets (16,140) (2,104)
Accounts payable, accrued and other current liabilities (17,409) 11,959
Accrued royalties 26,177 7,697
Accrued compensation 5,497 5,897
Other long-term liabilities 1 (1,596)
Deferred revenue 8,812 12,685
Reimbursement of cost of leasehold improvements 4,397 749
Net cash provided by (used in) operating activities (58,578) 17,059
Investing activities    
Purchases of property and equipment (34,564) (14,578)
Internal-use software costs (14,310) (3,369)
Changes in restricted cash (250) 0
Purchases of investments (11,091) (111,541)
Proceeds from maturities of investments 20,007 132,119
Proceeds from sale of investments 500 3,662
Payments related to acquisition, net of cash acquired (676) (200)
Net cash provided by (used in) investing activities (40,384) 6,093
Financing activities    
Proceeds from employee stock purchase plan 3,837 3,275
Proceeds from exercise of stock options 1,873 2,862
Payment of debt issuance costs (32) 0
Tax payments from net share settlements of restricted stock units (2,761) (907)
Net cash provided by financing activities 2,917 5,230
Effect of exchange rate changes on cash and cash equivalents (255) (236)
Net increase (decrease) in cash and cash equivalents (96,300) 28,146
Cash and cash equivalents at beginning of period 334,667 175,957
Cash and cash equivalents at end of period 238,367 204,103
Supplemental disclosures of cash flow information    
Cash paid during the period for interest 5,308 3,637
Purchases of property and equipment recorded in accounts payable and accrued liabilities $ 3,228 $ 219