It’s hidden away a bit, but you can read about the library function register use here:
http://amigadev.elowar.com/read/ADCD.../node000F.html
The short version is that Amiga library functions use d0/d1 and a0/a1 and expect the library pointer to be in a6. All of these apart from a6 can end up trashed. Other registers are safe.
Edit: made the above say what I meant