//
// MessagesProfilePage::onToggleAllObjects from 0x4c0a1e to 0x4c0a7e (96 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::onToggleAllObjects(MessagesProfilePage *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // r0
cocos2d::CCArray *StoredOnlineLevels; // r0
cocos2d::CCArray *v5; // r5
cocos2d::ccArray *data; // r2
int v7; // r3
cocos2d::CCObject **arr; // r2
cocos2d::CCObject **v9; // r3
int v10; // r1
int v11; // t1
a1->m_toggledAll ^= 1u;
v3 = GameLevelManager::sharedState();
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v3, (const char *)a1->m_messageKey.m_data.m_data);
v5 = StoredOnlineLevels;
if ( StoredOnlineLevels && cocos2d::CCArray::count(StoredOnlineLevels) )
{
data = v5->data;
if ( data->num )
{
v7 = data->num + 0x40000000;
arr = data->arr;
v9 = &arr[v7 - 1];
while ( arr <= v9 )
{
v11 = (int)*arr++;
v10 = v11;
if ( !v11 )
break;
*(_BYTE *)(v10 + 294) = a1->m_toggledAll;
}
}
CustomListView::reloadAll((CustomListView *)a1->m_listLayer->m_list);
}
}