What is the meaning of Yessir?

Used to express assent, especially to a male superior.

Used to express emphatic affirmation.

Term of address to a male; mate; buddy.

Source: wiktionary.org