//
// MessagesProfilePage::onUpdate from 0x140476570 to 0x140476676 (262 bytes)
//
// 2 xrefs:
// > MessagesProfilePage::init @ 0x1404761f0
// > ??> @ 0x1409283c4
//
// 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:40 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall MessagesProfilePage::onUpdate(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rcx
__int64 v4; // rcx
void *v5; // [rsp+40h] [rbp+18h]
void *v6; // [rsp+40h] [rbp+18h]
void *v7; // [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;
}
if ( (unsigned int)GameLevelManager::getTimeLeft(v2, "upd_messages", 5.0) - 1 > 4 )
{
v3 = *(_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);
v3 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::makeTimeStamp(v3, "upd_messages");
v4 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v7 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v7);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v4 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::invalidateMessages(v4, *(_BYTE *)(a1 + 696), 1);
}
}