def _get_pos_from_addr(self, addr: int) -> int | None:
        """
        Get scene X coordinate from address, or None if it could not be mapped.
        """
        if self._total_size == 0 or addr > self._total_size:
            return None
        return int(addr / self._total_size * self._width)

        Get scene X coordinate from address, or None if it could not be mapped.
        
angrmanagement/ui/widgets/qtrace_map.py