//
// CustomizeObjectLayer::toggleVisible from 0x57ebf4 to 0x57ecb8 (196 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::onSelectMode @ 0x57ed5e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:51 +0000
//
int __fastcall CustomizeObjectLayer::toggleVisible(CustomizeObjectLayer *this)
{
unsigned int v2; // r5
int v3; // r0
unsigned int i; // r5
int v5; // r0
unsigned int j; // r5
int v7; // r0
int v8; // r0
v2 = 0;
*((_BYTE *)this + 652) = *((_DWORD *)this + 140) == 3;
while ( v2 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 136)) )
{
v3 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 136), v2++);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 172))(v3, *((unsigned __int8 *)this + 652) ^ 1);
}
for ( i = 0; i < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 139)); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 139), i);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 172))(v5, *((unsigned __int8 *)this + 652) ^ 1);
}
if ( *((_BYTE *)this + 653) )
{
for ( j = 0; j < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 137)); ++j )
{
v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 137), j);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v7 + 172))(v7, *((unsigned __int8 *)this + 652));
}
v8 = *((_DWORD *)this + 151);
if ( v8 )
{
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v8 + 500))(v8, *((unsigned __int8 *)this + 652));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 151) + 172))(
*((_DWORD *)this + 151),
*((unsigned __int8 *)this + 652));
}
}
return CustomizeObjectLayer::updateCurrentSelection(this);
}