//
// MessagesProfilePage::onUpdate from 0x10022e880 to 0x10022e8e6 (102 bytes)
//
// 1 xrefs:
// > MessagesProfilePage::init @ 0x10022e319
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall MessagesProfilePage::onUpdate(MessagesProfilePage *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v2; // rax
GameLevelManager *v3; // rax
GameLevelManager *v4; // rax
v2 = GameLevelManager::sharedState();
if ( (unsigned int)(GameLevelManager::getTimeLeft(v2, "upd_messages", 5.0) - 1) >= 5 )
{
v3 = GameLevelManager::sharedState();
GameLevelManager::makeTimeStamp(v3, "upd_messages");
v4 = GameLevelManager::sharedState();
GameLevelManager::invalidateMessages(v4, a1->m_sentMessages, 1);
}
}