//
// MessagesProfilePage::untoggleAll from 0x8f2aec to 0x8f2b54 (104 bytes)
//
// 3 xrefs:
// > MessagesProfilePage::loadPage @ 0x8f2ee4
// > MessagesProfilePage::onClose @ 0x8f3d9c
// > ??> @ 0xbfd90
//
// 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::untoggleAll(MessagesProfilePage *a1)
{
GameLevelManager *v2; // x0
cocos2d::CCArray *StoredOnlineLevels; // x0
cocos2d::ccArray *data; // x0
unsigned int num; // w1
cocos2d::CCObject **arr; // x0
cocos2d::CCObject **i; // x2
cocos2d::CCObject *v8; // x1
v2 = GameLevelManager::sharedState();
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, (const char *)a1->m_messageKey.m_data.m_data);
if ( StoredOnlineLevels )
{
data = StoredOnlineLevels->data;
num = data->num;
if ( data->num )
{
arr = data->arr;
for ( i = &arr[num - 1]; i >= arr; BYTE2(v8[6].m_uAutoReleaseCount) = 0 )
{
v8 = *arr;
if ( !*arr )
break;
++arr;
}
}
}
}