Below is a sample sketch that shows creation of local hook() functions called before entry to setup as the Reset process proceeds.

It makes some notes on what can be expected to work in each of...