I think it’s the second. My guess is that she’s going through the book to learn about her powers (as the Scarlet Witch) and magic in general. Then heard her kids calling out for help. Which I feel like should lead to Mephisto, but might delve into the multiverse.