//
// GameLevelManager::invalidateMessages from 0x3c185c to 0x3c18ea (142 bytes)
//
// 7 xrefs:
// > GameLevelManager::onDeleteUserMessagesCompleted @ 0x3c1d8a
// > GameLevelManager::onBlockUserCompleted @ 0x3c2d88
// > MessagesProfilePage::onUpdate @ 0x4c0d06
// > ProfilePage::onUpdate @ 0x4c7296
// > ProfilePage::onUpdate @ 0x4c72a2
// > ProfilePage::init @ 0x4c7bac
// > ProfilePage::init @ 0x4c7bb8
//
// 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 GameLevelManager::invalidateMessages(GameLevelManager *a1, bool a2, bool a3)
{
_BOOL4 v4; // r9
_BOOL4 v5; // r10
int v6; // r8
char *MessagesKey; // r0
int v8; // r5
MessageListDelegate *m_messageListDelegate; // r0
char *v10; // [sp+8h] [bp+4h] BYREF
v4 = a2;
v5 = a3;
v6 = 0;
do
{
MessagesKey = (char *)GameLevelManager::getMessagesKey(a1, v4, v6);
sub_776584((int)&v10, MessagesKey);
if ( GameLevelManager::getStoredOnlineLevels(a1, v10) )
{
cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels);
v8 = 1;
}
else
{
v8 = 0;
}
++v6;
sub_774008(&v10);
}
while ( v8 );
if ( v5 )
{
m_messageListDelegate = a1->m_messageListDelegate;
if ( m_messageListDelegate )
m_messageListDelegate->forceReloadMessages(m_messageListDelegate, v4);
}
}