A detailed non-spoiler walkthrough by Samurai Bandit is hosted on GameFAQs: https://www.gamefaqs.com/portable/ds/file/955057/56440
Jump to the section titled "Getting Back what they took from you", which covers getting past the guards. Using Ctrl+F in your browser will find it in a second rather than scrolling.