thus the quest of the silmaril was like to have ended in ruin and despair ; but in that hour above the wall of the valley three mighty birds appeared , flying northward with wings swifter than the wind .