Kinagashi Bugyo(1981)

Koheita, a newly appointed magistrate, never shows his face in the magistrate's office, instead spending his time in the 'Horisoto', a den of evil where anything goes, from theft to prostitution to murder. However, this man is about to clean up the city in an unconventional way!