//
// LevelBrowserLayer::onToggleAllObjects from 0x3baba4 to 0x3bac00 (92 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 LevelBrowserLayer::onToggleAllObjects(LevelBrowserLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCArray *m_levels; // r0
cocos2d::CCArray *v4; // r3
cocos2d::ccArray *data; // r2
int v6; // r3
cocos2d::CCObject **arr; // r2
cocos2d::CCObject **v8; // r3
int v9; // r1
int v10; // t1
a1->m_allSelected ^= 1u;
m_levels = a1->m_levels;
if ( m_levels && cocos2d::CCArray::count(m_levels) )
{
v4 = a1->m_levels;
if ( v4 )
{
data = v4->data;
if ( data->num )
{
v6 = data->num + 0x40000000;
arr = data->arr;
v8 = &arr[v6 - 1];
while ( arr <= v8 )
{
v10 = (int)*arr++;
v9 = v10;
if ( !v10 )
break;
*(_BYTE *)(v9 + 411) = a1->m_allSelected;
}
}
}
CustomListView::reloadAll((CustomListView *)a1->m_list->m_listView);
}
}