XML 323 R5.htm IDEA: XBRL DOCUMENT v3.23.3
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2023
Sep. 30, 2022
Operating Activities    
Net loss $ (107,128) $ (259,197)
Adjustments to reconcile net loss to net cash provided by operating activities:    
Depreciation and amortization 48,443 47,438
Stock-based compensation 55,382 51,672
Amortization of debt discount and issuance costs 2,873 4,358
Non-cash lease expense 12,909 11,313
Impairment costs 113 913
Net (gain) loss on IRLCs, forward sales commitments, and loans held for sale (1,767) 4,228
Change in fair value of mortgage servicing rights, net 1,065 (1,472)
Gain on extinguishment of convertible senior notes (68,848) 0
Other (2,013) 3,254
Change in assets and liabilities:    
Accounts receivable, net (238) (17,052)
Inventory 114,232 56,990
Prepaid expenses and other assets 9,696 (2,721)
Accounts payable 177 (1,875)
Accrued and other liabilities, deferred tax liabilities, and payroll tax liabilities, noncurrent (19,346) (24,202)
Lease liabilities (14,864) (12,435)
Origination of mortgage servicing rights (699) (2,774)
Proceeds from sale of mortgage servicing rights 1,122 1,314
Origination of loans held for sale (2,798,337) (3,091,099)
Proceeds from sale of loans originated as held for sale 2,858,656 3,082,858
Net cash provided by (used in) operating activities 91,428 (148,489)
Investing activities    
Purchases of property and equipment (9,235) (17,496)
Purchases of investments (76,866) (145,273)
Sales of investments 124,681 12,946
Maturities of investments 59,383 66,055
Cash paid for acquisition, net of cash, cash equivalents, and restricted cash acquired 0 (97,341)
Net cash provided by (used in) investing activities 97,963 (181,109)
Financing activities    
Proceeds from the issuance of common stock pursuant to employee equity plans 5,790 9,679
Tax payments related to net share settlements on restricted stock units (15,961) (6,650)
Borrowings from warehouse credit facilities 2,803,589 3,080,606
Repayments to warehouse credit facilities (2,861,779) (3,069,728)
Borrowings from secured revolving credit facility 0 552,051
Repayments to secured revolving credit facility 0 (549,416)
Cash paid for secured revolving credit facility issuance costs 0 (764)
Principal payments under finance lease obligations (73) (680)
Repurchases of convertible senior notes (212,401) 0
Repayments of convertible senior notes (23,512) 0
Net cash (used in) provided by financing activities (304,347) 15,098
Effect of exchange rate changes on cash, cash equivalents, and restricted cash (73) (65)
Net change in cash, cash equivalents, and restricted cash (115,029) (314,565)
Cash, cash equivalents, and restricted cash:    
Cash, cash equivalents, and restrict cash balance 127,217 403,716
Supplemental disclosure of cash flow information    
Cash paid for interest 13,540 12,887
Non-cash transactions    
Stock-based compensation capitalized in property and equipment 3,173 2,983
Capital expenditures $ 29 $ 28