//
// LevelBrowserLayer::onToggleAllObjects from 0x7f5ea4 to 0x7f5f54 (176 bytes)
//
// 3 xrefs:
// > ??> @ 0xb2a68
// > LevelBrowserLayer::init @ 0x7fa3c0
// > ??> @ 0x15451a8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:54:37 +0000
//
cocos2d::CCArray **__fastcall LevelBrowserLayer::onToggleAllObjects(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
cocos2d::CCArray **v2; // x19
int v3; // w20
int v4; // w0
cocos2d::CCArray *v5; // x1
unsigned int *v6; // x1
unsigned int v7; // w2
__int64 *v8; // x1
__int64 *v9; // x3
__int64 v10; // x2
bool v11; // w0
if ( *(this + 82) )
{
v2 = this;
this = (cocos2d::CCArray **)cocos2d::CCArray::count(*(this + 82));
if ( (_DWORD)this )
{
v3 = LevelBrowserLayer::selectedCount((LevelBrowserLayer *)v2);
v4 = cocos2d::CCArray::count(v2[82]);
v5 = v2[82];
if ( v5 )
{
v6 = *((unsigned int **)v5 + 7);
v7 = *v6;
if ( *v6 )
{
v8 = *((__int64 **)v6 + 2);
v9 = &v8[v7 - 1];
if ( v8 <= v9 )
{
v10 = *v8;
if ( *v8 )
{
v11 = v3 != v4;
do
{
++v8;
*(_BYTE *)(v10 + 771) = v11;
if ( v9 < v8 )
break;
v10 = *v8;
}
while ( *v8 );
}
}
}
}
LevelBrowserLayer::updateSelectUI(v2);
return (cocos2d::CCArray **)LevelBrowserLayer::reloadAllObjects((LevelBrowserLayer *)v2);
}
}
return this;
}