Equivariant localization for wrapped M5-branes and D4-branes | Synapse