XML 24 R7.htm IDEA: XBRL DOCUMENT v3.23.2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2023
Jun. 30, 2022
Cash flow from operating activities    
Net income $ 88,628 $ 302,756
Adjustments to reconcile net income to net cash (used in) provided by operating activities:    
Net gains on loans held for sale at fair value (245,804) (521,026)
Change in fair value of mortgage servicing rights and mortgage servicing liabilities 291,704 (325,013)
Mortgage servicing rights hedging results 107,909 393,865
Capitalization of interest on loans held for sale (507) (2,817)
Amortization of debt issuance costs 9,315 10,133
Change in fair value of investment in common shares of PennyMac Mortgage Investment Trust (82) 263
Results of real estate acquired in settlement in loans (341) (1,353)
Stock-based compensation expense 12,025 24,223
Reversal of provision for servicing advance losses (5,049) (51,293)
Depreciation and amortization 25,939 14,375
Amortization of operating lease right-of-use assets 9,154 7,755
Purchase of loans held for sale from PennyMac Mortgage Investment Trust (32,087,157) (23,982,890)
Origination of loans held for sale (5,303,061) (15,128,696)
Purchase of loans held for sale from non-affiliates (968,096) (1,215,388)
Purchase of loans from Ginnie Mae securities and early buyout investors (1,395,735) (4,752,678)
Sale to non-affiliates and principal payment of loans held for sale 38,410,109 50,841,788
Sale of loans held for sale to PennyMac Mortgage Investment Trust   298,862
Repurchase of loans subject to representations and warranties (24,345) (45,176)
Decrease in servicing advances 164,845 128,940
Decrease (increase) in receivable from PennyMac Mortgage Investment Trust 11,537 (3,998)
Sale of real estate acquired in settlement of loans 16,411 9,937
(Increase) decrease in other assets (81,155) 134,692
Decrease in accounts payable and accrued expenses (3,977) (54,033)
Decrease in operating lease liabilities (10,080) (8,040)
Decrease in payable to PennyMac Mortgage Investment Trust (82,156) (140,615)
Payments to exchanged Private National Mortgage Acceptance Company, LLC unitholders under tax receivable agreement   (3,516)
Increase in income taxes payable 23,403 200,459
Net cash (used in) provided by operating activities (1,036,566) 6,131,516
Cash flow from investing activities    
Decrease in short-term investment 4,106 1,912
Net settlement of derivative financial instruments used for hedging of mortgage servicing rights (20,239) (574,109)
Transfer of mortgage servicing rights related to delinquent loans to Agency 232  
Acquisition of capitalized software (19,244) (39,267)
Purchase of furniture, fixtures, equipment and leasehold improvements (631) (4,089)
(Increase) decrease in margin deposits (150,716) 188,176
Net cash used in investing activities (186,492) (427,377)
Cash flow from financing activities    
Sale of assets under agreements to repurchase 39,333,545 42,087,498
Repurchase of assets sold under agreements to repurchase (38,551,928) (46,938,843)
Issuance of mortgage loan participation purchase and sale certificates 10,042,768 9,556,801
Repayment of mortgage loan participation purchase and sale certificates (9,824,304) (9,533,871)
Issuance of notes payable secured by mortgage servicing assets 680,000 500,000
Repayment of notes payable secured by mortgage servicing assets (150,000)  
Repayment of obligations under capital lease   (3,489)
Payment of debt issuance costs (10,119) (12,892)
Issuance of common stock pursuant to exercise of stock options 8,647 1,380
Payment of withholding taxes relating to stock-based compensation (9,142) (7,780)
Payment of dividends to holders of common stock (20,974) (22,564)
Repurchase of common stock (71,575) (255,057)
Net cash provided by (used in) financing activities 1,426,918 (4,628,817)
Net increase in cash and restricted cash 203,860 1,075,322
Cash and restricted cash at beginning of period 1,328,539 340,093
Cash and restricted cash at end of period 1,532,399 1,415,415
Cash 1,532,399 1,415,396
Restricted cash included in Other assets   19
Supplemental cash flow information:    
Cash paid for interest 305,512 154,745
Cash refunds received for income taxes, net 967 91,169
Non-cash investing activities:    
Mortgage servicing rights resulting from loan sales 849,056 1,014,555
Operating right-of-use assets recognized 1,727 793
Non-cash financing activities:    
Issuance of common stock in settlement of directors' fees $ 102 $ 102