BORROWING BASE REDETERMINATION AGREEMENT AND TWELFTH AMENDMENT TO CREDIT AGREEMENT