debt, non-cash interest expense, non-cash compensation, deferred taxes, and amortization of debt discount and debt issuance costs. Additionally, changes in working capital items such as accounts receivable, inventory, prepaid expense and accounts payable can significantly affect operating cash flows. Cash flows from operating activities during the first six months of 2023 were higher as a result of a decrease in net loss of $57.4 million, adjusted for non-cash items, of $42.0 million for the six months ended June 30, 2023, compared to $66.9 million for non-cash items for the six months ended June 30, 2022, which included $46.3 million of non-cash extinguishment of debt. Working capital changes decreased cash flows from operating activities by $2.8 million for the six months ended June 30, 2023 and decreased cash flows from operating activities by $2.8 million for the six months ended June 30, 2022.
Net Cash Used In Investing Activities
Cash used in investing activities was $29.6 million for the six months ended June 30, 2023 and $10.1 million for the six months ended June 30, 2022. During the first six months of 2023, cash payments of $31.2 million for capital expenditures were offset by proceeds from the sale of property, plant and equipment of $1.5 million. During the 2022 period, cash payments of $12.1 million for capital expenditures were offset by proceeds from the sale of property, plant and equipment of $2.0 million.
Net Cash (Used In) Provided by Financing Activities
Cash used in financing activities was $5.2 million for the six months ended June 30, 2023 and cash provided by financing activities was $10.8 million for the six months ended June 30, 2022. During the first six months of 2023, we received proceeds from borrowings under our revolving credit facility of $17.2 million. These proceeds were offset by repayments under our revolving credit facility of $15.6 million, redemption of $5.0 million of our Convertible Notes, taxes paid for vesting of restricted stock units of $0.4 million and payments for finance lease obligations of $1.4 million. During the first six months of 2022, we received proceeds from borrowings under our new Convertible Notes of $157.5 million, proceeds from borrowings under our revolving credit facility of $1.5 million, and proceeds from the issuance of common stock through our ATM transaction, net of issuance costs of $3.2 million. These proceeds were offset by repayment of our term loan of $139.1 million, payment of our merger consideration of $2.9 million, issuance costs paid related to our Convertible Notes of $7.1 million, repayments under our revolving credit facility of $2.0 thousand, taxes paid for vesting of restricted stock units of $32.0 thousand and payments for finance lease obligations of $2.3 million.
Long-term Debt
On March 18, 2022, we entered into a subscription agreement with affiliates of MSD Partners, L.P. and an affiliate of Glendon Capital Management L.P. (the “Subscription Agreement”) for the placement of $157.5 million aggregate principal amount of convertible secured PIK toggle notes due 2026 (the “Convertible Notes”), and currently have $176.8 million of Convertible Notes outstanding as of June 30, 2023. The Convertible Notes were issued pursuant to an Indenture, dated as of March 18, 2022 (the “Indenture”). The obligations under the Convertible Notes are secured by a first priority lien on collateral other than accounts receivable, deposit accounts and other related collateral pledged as first priority collateral (“Priority Collateral”) under the Revolving ABL Credit Facility (defined below). Proceeds from the private placement of the Convertible Notes were used to repay all of our outstanding indebtedness under our term loan credit agreement, to repay obligations to prior equity holders of Sidewinder Drilling LLC, and for working capital purposes. In connection with the placement of the Convertible Notes, we issued 2,268,000 shares of our common stock as a structuring fee. The structuring fee shares were issued on March 18, 2022, concurrent with the closing of the private placement of the Convertible Notes. The Convertible Notes mature on March 18, 2026.
The Convertible Notes have a cash interest rate of the Secured Overnight Financing Rate plus a 10 basis point credit spread, with a floor of 1% (collectively, “SOFR”) plus 12.5%. The Convertible Notes have a payment in-kind, or “PIK,” interest rate of SOFR plus 9.5%. We have the right, at our option, to PIK interest under the Convertible Notes for the entire term of the Convertible Notes. Interest on the Convertible Notes is due on March 31 and September 30 each year. We elected to PIK outstanding interest as of September 30, 2022 and March 31, 2023, resulting in the issuance of additional $12.7 million and $11.6 million principal amount of Convertible Notes, respectively. As the PIK interest due as of September 30, 2023 will result in the issuance of additional Convertible Notes, we have classified $6.5 million of accrued interest as of June 30, 2023 as “Other Long-Term Liabilities” on our consolidated balance sheet. As of December 31, 2022, accrued PIK interest of $5.8 million, which was due March 31, 2023 and resulted in the issuance of additional Convertible Notes, was classified as “Other Long-Term Liabilities” on our consolidated balance sheet.