When the S-mode buffer is open (myfile.r or myfile.s), the emacs menu has an item Imenu-S. Click it, then click "Functions ->". This produces a list of the functions. Click a function and you are taken to its first line.