XML 35 R7.htm IDEA: XBRL DOCUMENT v3.23.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2023
Mar. 31, 2022
Cash flow from operating activities    
Net income $ 30,378 $ 173,593
Adjustments to reconcile net income to net cash (used in) provided by operating activities:    
Net gains on loans held for sale at fair value (104,385) (298,459)
Change in fair value of mortgage servicing rights and mortgage servicing liabilities 236,447 (212,911)
Mortgage servicing rights hedging results (47,227) 217,860
Capitalization of interest on loans held for sale (223) (1,926)
Amortization of debt issuance costs 4,708 5,115
Change in fair value of investment in common shares of PennyMac Mortgage Investment Trust 4 33
Results of real estate acquired in settlement in loans (142) (543)
Stock-based compensation expense 11,650 9,275
Reversal of provision for servicing advance losses (3,081) (30,735)
Depreciation and amortization 12,705 7,011
Amortization of operating lease right-of-use assets 5,055 3,778
Purchase of loans held for sale from PennyMac Mortgage Investment Trust (13,451,030) (13,160,768)
Origination of loans held for sale (2,194,780) (10,071,516)
Purchase of loans held for sale from non-affiliates (404,963) (628,769)
Purchase of loans from Ginnie Mae securities and early buyout investors (714,110) (3,186,214)
Sale to non-affiliates and principal payment of loans held for sale 13,385,341 31,267,022
Sale of loans held for sale to PennyMac Mortgage Investment Trust   259,038
Repurchase of loans subject to representations and warranties (10,460) (17,087)
Decrease in servicing advances 138,018 82,438
Decrease in receivable from PennyMac Mortgage Investment Trust 1,872 12,096
Sale of real estate acquired in settlement of loans 7,533 4,422
(Increase) decrease in other assets (64,777) 14,999
Decrease in accounts payable and accrued expenses (43,767) (501)
Decrease in operating lease liabilities (4,914) (3,687)
Decrease in payable to PennyMac Mortgage Investment Trust (62,927) (76,811)
Increase in income taxes payable 8,184 60,611
Net cash (used in) provided by operating activities (3,264,891) 4,427,364
Cash flow from investing activities    
Decrease (increase) in short-term investment 8,610 (71,133)
Net settlement of derivative financial instruments used for hedging of mortgage servicing rights 78,438 (287,735)
Sale of mortgage servicing rights 232  
Acquisition of capitalized software (10,590) (19,430)
Purchase of furniture, fixtures, equipment and leasehold improvements (173) (2,577)
(Increase) decrease in margin deposits (97,450) 213,467
Net cash used in by investing activities (20,933) (167,408)
Cash flow from financing activities    
Sale of assets under agreements to repurchase 16,713,811 24,928,688
Repurchase of assets sold under agreements to repurchase (13,949,931) (28,889,470)
Issuance of mortgage loan participation purchase and sale certificates 4,170,792 5,338,287
Repayment of mortgage loan participation purchase and sale certificates (3,943,198) (5,323,593)
Issuance of notes payable secured by mortgage servicing assets 680,000  
Repayment of notes payable secured by mortgage servicing assets (150,000)  
Repayment of obligations under capital lease   (2,093)
Payment of debt issuance costs (5,345) (2,409)
Issuance of common stock pursuant to exercise of stock options 4,342 976
Payment of withholding taxes relating to stock-based compensation (9,142) (7,780)
Payment of dividend to holders of common stock (10,777) (11,425)
Repurchase of common stock (45,361) (141,412)
Net cash provided by (used in) financing activities 3,455,191 (4,110,231)
Net increase in cash and restricted cash 169,367 149,725
Cash and restricted cash at beginning of quarter 1,328,539 340,093
Cash and restricted cash at end of quarter 1,497,906 489,818
Cash 1,497,903 489,799
Restricted cash included in Other assets 3 19
Supplemental cash flow information:    
Cash paid for interest 129,791 82,305
Cash (refunds received) paid for income taxes, net (415) 316
Non-cash investing activities:    
Mortgage servicing rights resulting from loan sales 286,533 616,302
Operating right-of-use assets recognized 1,727  
Non-cash financing activities:    
Issuance of common stock in settlement of directors' fees $ 51 $ 51