This suggests the magnesium came from the giant companion star.
The disk structure seen by Chandra in X-rays bears a remarkable resemblance in both shape and location to one observed by the Spitzer Space Telescope.