//
// LevelBrowserLayer::onToggleAllObjects from 0x1403ea130 to 0x1403ea208 (216 bytes)
//
// 4 xrefs:
// > LevelBrowserLayer::init @ 0x1403e2db6
// > ??> @ 0x1408c5088
// > ??> @ 0x1408c5098
// > ??> @ 0x14092510c
//
// This function is hookable on this platform (idp: pc, 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 11:31:44 +0000
//
void __fastcall LevelBrowserLayer::onToggleAllObjects(__int64 a1)
{
cocos2d::CCArray *v2; // rcx
int v3; // edi
unsigned int v4; // eax
__int64 v5; // rcx
unsigned int v6; // r9d
unsigned int *v7; // rcx
__int64 v8; // rax
__int64 *v9; // rcx
__int64 *i; // r8
__int64 v11; // rdx
unsigned int v12; // eax
__int64 v13; // r11
__int64 v14; // rcx
__int64 v15; // rcx
v2 = *(cocos2d::CCArray **)(a1 + 656);
if ( v2 && cocos2d::CCArray::count(v2) )
{
v3 = LevelBrowserLayer::selectedCount(a1);
v4 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 656));
v5 = *(_QWORD *)(a1 + 656);
v6 = v4;
if ( v5 )
{
v7 = *(unsigned int **)(v5 + 56);
v8 = *v7;
if ( (_DWORD)v8 )
{
v9 = *((__int64 **)v7 + 2);
for ( i = &v9[v8 - 1]; v9 <= i; *(_BYTE *)(v11 + 843) = v3 != v6 )
{
v11 = *v9;
if ( !*v9 )
break;
++v9;
}
}
}
if ( *(_QWORD *)(a1 + 712) )
{
v12 = LevelBrowserLayer::selectedCount(a1);
GJSelectionStrip::setCount(v13, v12);
}
v14 = *(_QWORD *)(a1 + 608);
if ( v14 )
{
v15 = *(_QWORD *)(v14 + 544);
if ( v15 )
CustomListView::reloadAll(v15);
}
}
}