Interrupt Masking not in Continue_Application?

In sample code peripheral_server_sleep, function App_Initialize applies

    /* Mask all interrupts */
    __set_PRIMASK(PRIMASK_DISABLE_INTERRUPTS);

    /* Disable all interrupts and clear any pending interrupts */
    Sys_NVIC_DisableAllInt();
    Sys_NVIC_ClearAllPendingInt();

followed by configuring registers ACS, SYSCTRL, RF, CLK, BBIF, BLE*, among others, and
ends with

    /* Stop masking interrupts */
    __set_PRIMASK(PRIMASK_ENABLE_INTERRUPTS);
    __set_FAULTMASK(FAULTMASK_ENABLE_INTERRUPTS);

Could you please explain why interrupts are masked in App_Initialize and why
this is not the case in function Continue_Application where registers DIO, ACS, CLK, FLASH, BBIF (among others) are reconfigured?

I don’t believe there’s any particular reason. The masking should likely be done in both places for consistency and ultimate avoidance of any unforeseen issues.

For unknown reasons, masking code in Continue_Application seems to be problematic (= no wakeup from sleep Mode).