Masterfully has 2 different meanings across 1 category:
Adverb
in a skillfully masterful manner; with the skill of a master
"the young boy played the violin sonata masterfully"
In a masterful manner; in an extremely confident and competent manner.