I remember reading that this scene was completely adlibbed by this actor. This was not his lines, but while he was waiting for them to set up the shot, he started, on his own, chanting this. The director liked it so much, they left it in.
One of my favorite Eagles' tune was the movie theme:
https://www.youtube.com/watch?v=ljSuROOUxg8