The TM symbol placed next to a mark is meant to notify the public that the owner considers that particular Trademark to be proprietary. In other words, the owner is claiming rights to that Trademark, even in the case, the trademark application has not been filed.
The symbol ® indicates the Registration of a Trademark and is to notify the public that the Trademark is legally protected. Using this symbol gives a trademark proprietor better protection in court, noting that no infringer can claim unawareness so long as the registration symbol is used in accordance with the law.