//
// NotificationsPage::onUpdate from 0x140478620 to 0x1404786e6 (198 bytes)
//
// 2 xrefs:
// > NotificationsPage::init @ 0x14047830d
// > ??> @ 0x1409284d8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:32:41 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall NotificationsPage::onUpdate(__int64 a1)
{
__int64 v2; // rcx
__int64 result; // rax
__int64 v4; // rcx
void *v5; // [rsp+40h] [rbp+18h]
void *v6; // [rsp+40h] [rbp+18h]
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v5 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v5);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
result = (unsigned int)GameLevelManager::getTimeLeft(v2, "upd_notifications", 5.0) - 1;
if ( (unsigned int)result > 4 )
{
v4 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v6 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v6);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v4 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::makeTimeStamp(v4, "upd_notifications");
return NotificationsPage::loadPage(a1, *(unsigned int *)(a1 + 736));
}
return result;
}