//
// MessagesProfilePage::onUpdate from 0x4c0cd4 to 0x4c0d0c (56 bytes)
//
// 0 xrefs:
//
// 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 MessagesProfilePage::onUpdate(MessagesProfilePage *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // r0
GameLevelManager *v4; // r0
GameLevelManager *v5; // r0
v3 = GameLevelManager::sharedState();
if ( (unsigned int)(GameLevelManager::getTimeLeft(v3, "upd_messages", 5.0) - 1) > 4 )
{
v4 = GameLevelManager::sharedState();
GameLevelManager::makeTimeStamp(v4, "upd_messages");
v5 = GameLevelManager::sharedState();
GameLevelManager::invalidateMessages(v5, a1->m_sentMessages, 1);
}
}