//
// MessagesProfilePage::onUpdate from 0xa49b64 to 0xa49bc8 (100 bytes)
//
// 3 xrefs:
// > ??> @ 0x104968
// > MessagesProfilePage::init @ 0xa4b9d8
// > ??> @ 0x1547f58
//
// This function is hookable on this platform (idp: arm, 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 13:00:01 +0000
//
__int64 __fastcall MessagesProfilePage::onUpdate(MessagesProfilePage *this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x0
__int64 result; // x0
GameLevelManager *v5; // x0
GameLevelManager *TimeStamp; // x0
GameLevelManager *v7; // x0
v3 = (GameLevelManager *)GameLevelManager::sharedState(this);
result = (unsigned int)GameLevelManager::getTimeLeft(v3, "upd_messages", 5.0) - 1;
if ( (unsigned int)result > 4 )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)result);
TimeStamp = (GameLevelManager *)GameLevelManager::makeTimeStamp(v5, "upd_messages");
v7 = (GameLevelManager *)GameLevelManager::sharedState(TimeStamp);
return GameLevelManager::invalidateMessages(v7, *((_BYTE *)this + 696), 1u);
}
return result;
}