TM means that the trademark has submitted a trademark application to the Trademark Office and has been accepted by the Trademark Office, and an acceptance notice has been issued. It can be marked with the "TM" mark to inform consumers.
Putting an R inside the circle indicates that the trademark has received a registration certificate authorized by the Trademark Office, and the trademark applicant officially enjoys exclusive rights to the trademark. The exclusive right is valid for 10 years and needs to be renewed at the Trademark Office every ten years.