Quarterly report pursuant to Section 13 or 15(d)

CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS

v3.7.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2017
Mar. 31, 2016
Cash Flows From Operating Activities:    
Net income (loss) $ 71,985 $ (88,930)
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:    
Amortization of premiums and discounts on investment securities and commercial real estate assets, net 6,078 5,735
Amortization of deferred debt issuance costs on convertible senior notes 78 0
Other-than-temporary impairment losses 0 717
Realized and unrealized losses (gains) on investment securities, net 52,352 (29,474)
Loss on servicing asset 14,565 101,440
Gain on residential mortgage loans held-for-sale (1,461) (10,803)
(Gain) loss on residential mortgage loans held-for-investment and collateralized borrowings in securitization trusts (6,683) (1,484)
Gain on termination and option expiration of interest rate swaps and swaptions (66,031) (30,629)
Unrealized loss on interest rate swaps and swaptions 48,200 149,923
Unrealized loss (gain) on other derivative instruments 59,841 (4,387)
Equity based compensation 3,957 2,851
Depreciation of fixed assets 285 328
Purchases of residential mortgage loans held-for-sale (437) (271,448)
Proceeds from sales of residential mortgage loans held-for-sale 3,987 19,830
Proceeds from repayment of residential mortgage loans held-for-sale 3,716 36,360
Net change in assets and liabilities:    
(Increase) decrease in accrued interest receivable (13,353) (4,547)
(Increase) decrease in deferred income taxes, net (24,710) 7,048
Decrease (increase) in income taxes receivable 84 (839)
Decrease (increase) in prepaid and fixed assets 242 (87)
Decrease in other receivables 10,307 208
Decrease (increase) in servicing advances 1,466 (7,173)
Increase (decrease) in accrued interest payable 11,481 406
Increase (decrease) in income taxes payable 30 (70)
(Decrease) increase in accrued expenses and other liabilities (13,715) (6,657)
Net cash provided by (used in) operating activities 162,264 (131,682)
Cash Flows From Investing Activities:    
Purchases of available-for-sale securities (6,837,176) (4,185,685)
Proceeds from sales of available-for-sale securities 2,414,267 2,270,454
Principal payments on available-for-sale securities 272,954 192,171
(Purchases) short sales of derivative instruments, net (42,293) (14,687)
Proceeds from sales (payments for termination) of derivative instruments, net 78,763 44,027
Proceeds from repayment of residential mortgage loans held-for-investment in securitization trusts 102,545 133,374
Originations and purchases of commercial real estate assets, net of deferred fees (137,445) (86,156)
Proceeds from repayment of commercial real estate assets 3,809 4,531
Purchases of mortgage servicing rights, net of purchase price adjustments (68,551) (51,453)
Proceeds from sales of mortgage servicing rights 250 0
Purchases of Federal Home Loan Bank stock 0 (11,206)
Redemptions of Federal Home Loan Bank stock 19,760 0
(Decrease) increase in due to counterparties, net (75,143) (158,919)
Net cash (used in) provided by investing activities (4,268,260) (1,863,549)
Cash Flows From Financing Activities:    
Proceeds from repurchase agreements 36,676,708 10,535,094
Principal payments on repurchase agreements (32,352,339) (9,353,516)
Proceeds from issuance of collateralized borrowings in securitization trusts 0 883,633
Principal payments on collateralized borrowings in securitization trusts (101,562) (96,188)
Proceeds from Federal Home Loan Bank advances 0 215,000
Principal payments on Federal Home Loan Bank advances (428,238) 0
Principal payments on revolving credit facilities (55,000) 0
Proceeds from convertible senior notes 282,469 0
Proceeds from issuance of preferred stock, net of offering costs 138,872 0
Proceeds from issuance of common stock, net of offering costs 102 110
Repurchase of common stock 0 (61,307)
Dividends paid on common stock (83,437) (92,016)
Net cash provided by financing activities 4,077,575 2,030,810
Net (decrease) increase in cash, cash equivalents and restricted cash (28,421) 35,579
Cash, cash equivalents and restricted cash at beginning of period 815,195 1,000,393
Cash, cash equivalents and restricted cash at end of period 786,774 1,035,972
Supplemental Disclosure of Cash Flow Information:    
Cash paid for interest 38,237 23,276
Cash paid (received) for taxes 81 (689)
Noncash Activities:    
Transfers of residential mortgage loans held-for-sale to residential mortgage loans held-for-investment in securitization trusts 0 641,738
Transfers of residential mortgage loans held-for-sale to other receivables for foreclosed government-guaranteed loans 1,626 5,194
Transfer of fair value of mortgage servicing rights to fair value of Ginnie Mae residential mortgage loans held-for-sale upon buyout 9 2,265
Additions to mortgage servicing rights due to sale of residential mortgage loans held-for-sale 20 204
Dividends declared but not paid at end of period 87,228 79,939
Reconciliation of residential mortgage loans held-for-sale:    
Residential mortgage loans held-for-sale at beginning of period 40,146 811,431
Purchases of residential mortgage loans held-for-sale 437 271,448
Transfers to residential mortgage loans held-for-investment in securitization trusts 0 (641,738)
Transfers to other receivables for foreclosed government-guaranteed loans (1,626) (5,194)
Transfer of fair value of mortgage servicing rights to fair value of Ginnie Mae residential mortgage loans held-for-sale upon buyout (9) (2,265)
Proceeds from sales of residential mortgage loans held-for-sale (3,987) (19,830)
Proceeds from repayment of residential mortgage loans held-for-sale (3,716) (36,360)
Realized and unrealized gains on residential mortgage loans held-for-sale 1,441 9,767
Residential mortgage loans held-for-sale at end of period $ 32,686 $ 387,259