Draw X cards. For each card drawn this way, discard a card unless you sacrifice a permanent.
You draw the cards, then sacrifice any permanents you want to sacrifice, then discard the required number of card from your hand. There is no chance to play any cards in between these actions.