XML 22 R6.htm IDEA: XBRL DOCUMENT v3.22.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Cash flows from operating activities:    
Net Income (Loss) $ 12,074 $ (171,185)
Adjustments to reconcile net income (loss) to cash provided by operating activities:    
Depreciation and amortization 49,363 46,428
Debt extinguishment and commitment costs 5,672 8,135
Non-cash interest expense 2,106 3,638
Non-cash lower of cost and net realizable value adjustment (463) (10,595)
Deferred taxes 615 0
Loss (gain) on sale of assets, net 15 (64,402)
Stock-based compensation 5,769 4,072
Unrealized gain on derivative contracts (13,155) (5,517)
Net changes in operating assets and liabilities:    
Trade accounts receivable (174,818) (99,462)
Prepaid and other assets (68,580) 5,482
Inventories (369,846) (184,107)
Deferred turnaround expenditures (29,688) (5,731)
Obligations under inventory financing agreements 309,396 199,644
Accounts payable, other accrued liabilities, and operating lease ROU assets and liabilities 299,197 275,415
Net cash provided by operating activities 27,657 1,815
Cash flows from investing activities:    
Capital expenditures (29,020) (14,007)
Proceeds from sale of assets 68 102,854
Net cash provided by (used in) investing activities (28,952) 88,847
Cash flows from financing activities:    
Proceeds from sale of common stock, net of offering costs 0 87,193
Proceeds from borrowings 256,163 56,409
Repayments of borrowings (313,143) (197,669)
Net borrowings on deferred payment arrangements, discretionary draw facilities, and receivable advances 142,348 76,032
Purchase of common stock for retirement (6,483) (1,323)
Payments for debt extinguishment and commitment costs (3,983) (5,618)
Other financing activities, net 350 334
Net cash provided by financing activities 75,252 15,358
Net increase in cash, cash equivalents, and restricted cash 73,957 106,020
Cash, cash equivalents, and restricted cash at beginning of period 116,221 70,309
Cash, cash equivalents, and restricted cash at end of period 190,178 176,329
Net cash received (paid) for:    
Interest (30,735) (37,601)
Taxes (13) 54
Non-cash investing and financing activities:    
Accrued capital expenditures 3,818 2,129
ROU assets obtained in exchange for new finance lease liabilities 594 1,102
ROU assets obtained in exchange for new operating lease liabilities 13,692 87,331
ROU assets terminated in exchange for release from operating lease liabilities $ 32,902 $ 113