Definitely religious due to the nimbus (halo) around the head of the figure in the top picture. I pasted that top image into AI and asked who it was. The reply was: "Saint Leonard of Noblac (also known as Saint Leonard of Limoges). Traditionally invoked as the patron saints of prisoners, captives, and slaves." Notice he is shown in your medallion holding a chain attached to a shackle or manacle. I then googled why this particular saint would be holding a branch, and found out that it would likely have been a palm branch, which would either signify that he was an abbot, or, representative of spiritual victory. I then pasted the lower image into AI and found out that it depicts St. Michael the Archangel, trampling satan, "holding scales to represent his role in the Psychostasia, which is the weighing of human souls in judgment. This imagery was common in Medieval and Renaissance Catholic art." All the above comes with the typical caveat: AI can make mistakes. (As is true with the entirety of the Internet.)