XML 15 R5.htm IDEA: XBRL DOCUMENT v3.23.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2023
Jun. 30, 2022
Operating Activities    
Net loss $ (88,156) $ (168,952)
Adjustments to reconcile net loss to net cash provided by operating activities:    
Depreciation and amortization 34,146 31,140
Stock-based compensation 36,582 33,601
Amortization of debt discount and issuance costs 2,029 2,899
Non-cash lease expense 9,578 7,096
Impairment costs 113 0
Net (gain) loss on IRLCs, forward sales commitments, and loans held for sale (4,565) 2,721
Change in fair value of mortgage servicing rights, net 599 (878)
Gain on extinguishment of convertible senior notes (62,353) 0
Other (1,794) 3,170
Change in assets and liabilities:    
Accounts receivable, net (14,069) (6,791)
Inventory 114,232 (19,297)
Prepaid expenses and other assets 8,868 (2,852)
Accounts payable 2,812 5,964
Accrued and other liabilities, deferred tax liabilities, and payroll tax liabilities, noncurrent (4,522) 5,529
Lease liabilities (10,790) (8,042)
Origination of mortgage servicing rights (579) (964)
Proceeds from sale of mortgage servicing rights 738 774
Origination of loans held for sale (1,922,690) (1,641,377)
Proceeds from sale of loans originated as held for sale 1,888,706 1,587,759
Net cash used in operating activities (11,115) (168,500)
Investing activities    
Purchases of property and equipment (6,213) (12,131)
Purchases of investments (76,866) (82,184)
Sales of investments 65,099 12,946
Maturities of investments 59,383 19,425
Cash paid for acquisition, net of cash, cash equivalents, and restricted cash acquired 0 (97,341)
Net cash provided by (used in) investing activities 41,403 (159,285)
Financing activities    
Proceeds from the issuance of common stock pursuant to employee equity plans 5,665 9,258
Tax payments related to net share settlements on restricted stock units (11,096) (3,743)
Borrowings from warehouse credit facilities 1,920,487 1,628,684
Repayments to warehouse credit facilities (1,883,196) (1,572,033)
Borrowings from secured revolving credit facility 0 326,025
Repayments to secured revolving credit facility 0 (369,266)
Cash paid for secured revolving credit facility issuance costs 0 (764)
Principal payments under finance lease obligations (53) (414)
Repurchases of convertible senior notes (183,019) 0
Net cash (used in) provided by financing activities (151,212) 17,747
Effect of exchange rate changes on cash, cash equivalents, and restricted cash (58) (42)
Net change in cash, cash equivalents, and restricted cash (120,982) (310,080)
Cash, cash equivalents, and restricted cash:    
Cash, cash equivalents, and restrict cash balance 121,264 408,201
Supplemental disclosure of cash flow information    
Cash paid for interest 8,370 6,581
Non-cash transactions    
Stock-based compensation capitalized in property and equipment 2,204 2,053
Capital expenditures $ 64 $ 69