XML 25 R7.htm IDEA: XBRL DOCUMENT v3.25.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Cash flows from operating activities:      
Net income (loss) $ (33,322) $ 728,642 $ 364,189
Adjustments to reconcile net income (loss) to cash used in operating activities:      
Depreciation and amortization 131,590 119,830 99,769
Debt extinguishment and commitment costs 1,688 19,182 5,329
Non-cash interest expense 5,741 4,645 4,218
Non-cash lower of cost and net realizable value adjustment 2,288 0 (463)
Deferred taxes (2,559) (126,267) 274
Loss (gain) on sale of assets, net 222 (59) (169)
Stock-based compensation 25,704 11,633 9,353
Unrealized (gain) loss on derivative contracts 42,484 (49,689) 9,336
Equity (earnings) losses from Laramie Energy, LLC 296 (24,985) 0
Equity earnings from refining and logistics investments (11,905) (11,844) 0
Dividends received from refining and logistics investments 13,080 4,328 0
Net changes in operating assets and liabilities:      
Trade accounts receivable (26,036) (112,421) (57,391)
Prepaid and other assets 55,930 (82,027) (35,356)
Inventories 62,853 180,235 (254,437)
Deferred turnaround expenditures (73,453) (5,851) (29,608)
Obligations under inventory financing agreements (53,498) (91,624) 74,680
Accounts payable, other accrued liabilities, and operating lease ROU assets and liabilities (57,327) 15,428 262,882
Net cash provided by operating activities 83,776 579,156 452,606
Cash flows from investing activities:      
Acquisitions of businesses, net of cash acquired 0 (595,420) (35,546)
Capital expenditures (135,540) (82,277) (53,025)
Proceeds from sale of assets 61 1,322 1,263
Net cash used in investing activities (133,994) (659,039) (87,308)
Cash flows from financing activities:      
Proceeds from borrowings 4,518,219 1,462,850 384,874
Repayments of borrowings (4,061,619) (1,317,709) (446,863)
Net borrowings (repayments) of deferred payment arrangements and receivable advances (165,459) (95,985) 80,681
Payment of deferred loan costs (9,634) (14,371) 0
Purchase of common stock for retirement (141,974) (67,821) (7,834)
Exercise of stock options 1,514 17,129 6,444
Proceeds from inventory financing agreements 203,074 0 0
Payments for termination of inventory financing agreements (382,143) (112,594) 0
Payments for debt extinguishment and commitment costs and termination of inventory financing agreements (1,247) (8,742) (3,483)
Other financing activities, net 2,308 1,646 (412)
Net cash provided by (used in) financing activities (36,961) (135,597) 13,407
Net increase (decrease) in cash, cash equivalents, and restricted cash (87,179) (215,480) 378,705
Cash, cash equivalents, and restricted cash at beginning of period 279,446 494,926 116,221
Cash, cash equivalents, and restricted cash at end of period 192,267 279,446 494,926
Net cash received (paid) for:      
Interest (67,828) (77,417) (63,323)
Taxes (12,029) (6,099) (51)
Non-cash investing and financing activities:      
Accrued capital expenditures 33,314 13,241 5,418
ROU assets obtained in exchange for new finance lease liabilities 2,319 7,896 594
ROU assets obtained in exchange for new operating lease liabilities 166,028 72,219 64,567
ROU assets terminated in exchange for release from operating lease liabilities 41 1,439 32,902
Return of capital from Laramie Energy, LLC      
Cash flows from investing activities:      
Return of capital from Laramie Energy, LLC and Return of capital from refining and logistics investments 1,485 10,706 0
Return of capital from refining and logistics investments      
Cash flows from investing activities:      
Return of capital from Laramie Energy, LLC and Return of capital from refining and logistics investments $ 0 $ 6,630 $ 0