The film is “Lawman” from 1971. Pretty good western, excellent cast. https://www.imdb.com/title/tt0067333/
Thank you.