def toggle_label_selection(self, addr: int) -> None:
        """
        Toggle the selection state of a label in the disassembly view.

        :param addr:    Address of the instruction to toggle.
        """

        if addr in self.selected_labels:
            self.unselect_label(addr)
        else:
            self.select_label(addr)

        Toggle the selection state of a label in the disassembly view.

        :param addr:    Address of the instruction to toggle.
        
angrmanagement/logic/disassembly/info_dock.py