Annual report pursuant to Section 13 and 15(d)

CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS

v3.6.0.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS
$ in Thousands
12 Months Ended
Dec. 31, 2016
USD ($)
Dec. 31, 2015
USD ($)
Dec. 31, 2014
USD ($)
Cash Flows From Operating Activities:      
Net income (loss) $ 353,278 $ 492,210 $ 167,139
Adjustments to reconcile net income to net cash provided by (used in) operating activities:      
Amortization of premiums and discounts on investment securities and commercial real estate assets, net 35,644 38,445 12,012
Other-than-temporary impairment losses 1,822 535 392
Realized and unrealized losses (gains) on investment securities, net 107,374 (363,379) (87,201)
Gain on residential mortgage loans held-for-sale (16,085) (14,285) (17,297)
Loss (gain) on residential mortgage loans held-for-investment and collateralized borrowings in securitization trusts 11,834 26,527 (16,840)
Realized gain on sales of commercial real estate assets 0 (181) 0
Loss on servicing asset 83,531 99,584 128,388
Loss on termination and option expiration of interest rate swaps and swaptions 81,985 226,143 55,389
Unrealized (gain) loss on interest rate swaps and swaptions (148,429) (101,158) 198,504
Unrealized gain on other derivative instruments (37,463) (14,196) (8,011)
Equity based compensation 15,197 9,002 15,082
Depreciation of fixed assets 1,283 1,362 1,083
Amortization of intangible assets 0 0 533
Purchases of residential mortgage loans held-for-sale (1,214,865) (2,599,737) (1,475,210)
Proceeds from sales of residential mortgage loans held-for-sale 804,265 160,559 432,749
Proceeds from repayment of residential mortgage loans held-for-sale 143,587 98,631 38,545
Net change in assets and liabilities:      
(Increase) decrease in accrued interest receivable (12,781) 15,559 (15,226)
Decrease (increase) in deferred income taxes, net 13,766 (12,638) (80,261)
Decrease (increase) in income taxes receivable 3,754 (5,286) 0
Increase in prepaid and fixed assets (338) (930) (2,536)
(Increase) decrease in other receivables (6,376) 8,701 (10,421)
Decrease (increase) in servicing advances 11,352 (10,009) (20,192)
Increase (decrease) in accrued interest payable 10,782 (5,049) 3,495
(Decrease) increase in income taxes payable (70) (1,305) 618
(Decrease) increase in accrued expenses and other liabilities (3,368) 14,147 11,983
Net cash provided by (used in) operating activities 239,679 (1,936,748) (667,283)
Cash Flows From Investing Activities:      
Purchases of available-for-sale securities (21,325,083) (1,788,541) (6,126,579)
Proceeds from sales of available-for-sale securities 14,404,458 6,985,567 3,479,329
Principal payments on available-for-sale securities 1,278,361 1,148,407 1,044,487
(Purchases) short sales of derivative instruments, net (19,240) (90,183) (81,330)
Proceeds from sales (payments for termination) of derivative instruments, net 76,040 4,081 73,966
Purchases of trading securities 0 0 (2,138,647)
Proceeds from sales of trading securities 0 2,004,375 1,145,410
Proceeds from repayment of residential mortgage loans held-for-investment in securitization trusts 913,894 562,025 111,129
Originations and purchases of commercial real estate assets, net of deferred fees (760,731) (662,627) 0
Proceeds from sales of commercial real estate assets 0 1,979 0
Proceeds from repayment of commercial real estate assets 16,385 344 0
Purchases of mortgage servicing rights, net of purchase price adjustments (317,709) (123,666) (59,568)
Proceeds from sales of mortgage servicing rights 40,137 0 0
Purchases of Federal Home Loan Bank stock (11,206) (56,640) (100,000)
Purchases of equity investments 0 0 (3,000)
Increase (decrease) in due to counterparties, net 34,416 (71,493) (205,180)
(Increase) decrease in restricted cash (145,750) 74,209 64,876
Net cash (used in) provided by investing activities (5,816,028) 7,987,837 (2,795,107)
Cash Flows From Financing Activities:      
Proceeds from repurchase agreements 112,504,120 47,385,219 213,091,865
Principal payments on repurchase agreements (108,196,043) (55,309,408) (212,409,852)
Proceeds from issuance of collateralized borrowings in securitization trusts 1,877,399 1,223,302 728,519
Principal payments on collateralized borrowings in securitization trusts (832,405) (406,942) (182,872)
Proceeds from Federal Home Loan Bank advances 215,000 1,490,000 4,796,411
Principal payments on Federal Home Loan Bank advances 0 (205,000) (2,296,411)
Proceeds from revolving credit facilities 70,000 0 0
Proceeds from issuance of common stock, net of offering costs 502 539 588
Repurchase of common stock (61,307) (115,174) 0
Dividends paid on common stock (331,865) (381,586) (285,553)
Net cash provided by (used in) financing activities 5,245,401 (6,319,050) 3,442,695
Net decrease in cash and cash equivalents (330,948) (267,961) (19,695)
Cash and cash equivalents at beginning of period 737,831 1,005,792 1,025,487
Cash and cash equivalents at end of period 406,883 737,831 1,005,792
Supplemental Disclosure of Cash Flow Information:      
Cash paid for interest 116,147 92,286 79,276
Cash (received) paid for taxes (5,146) 2,739 5,905
Noncash Activities:      
Transfers of residential mortgage loans held-for-sale to residential mortgage loans held-for-investment in securitization trusts 1,031,226 2,046,437 1,022,360
Transfers of residential mortgage loans held-for-sale to other receivables for foreclosed government-guaranteed loans 16,721 16,723 0
Transfer of fair value of mortgage servicing rights to fair value of Ginnie Mae residential mortgage loans held-for-sale upon buyout 5,162 15,756 6,136
Additions to mortgage servicing rights due to sale of residential mortgage loans held-for-sale 924 1,844 288
Cumulative-effect adjustment to equity for adoption of new accounting principle 0 (2,991) 0
Dividends declared but not paid at end of period 83,437 92,016 95,263
Reconciliation of residential mortgage loans held-for-sale:      
Residential mortgage loans held-for-sale at beginning of period 811,431 535,712  
Purchases of residential mortgage loans held-for-sale 1,214,865 2,599,737 1,475,210
Transfers to residential mortgage loans held-for-investment in securitization trusts (1,031,226) (2,046,437) (1,022,360)
Transfers to other receivables for foreclosed government-guaranteed loans (16,721) (16,723) 0
Transfer of fair value of mortgage servicing rights to fair value of Ginnie Mae residential mortgage loans held-for-sale upon buyout (5,162) (15,756) (6,136)
Proceeds from sales of residential mortgage loans held-for-sale (804,265) (160,559) (432,749)
Proceeds from repayment of residential mortgage loans held-for-sale (143,587) (98,631) (38,545)
Realized and unrealized gains on residential mortgage loans held-for-sale 14,811 14,088 15,711
Residential mortgage loans held-for-sale at end of period $ 40,146 $ 811,431 $ 535,712