def METHOD_NAME(self, cur_regs: Mapping[str, int], extra_dict=None) -> Mapping[str, int]:
    """
    swap register name with more readable register name
    """
    target_items = extra_dict.items() if extra_dict else self.regs_need_swapped.items()
    for old_reg, new_reg in target_items:
        cur_regs.update({old_reg: cur_regs.pop(new_reg)})
    return cur_regs 