//
// CustomizeObjectLayer::toggleVisible from 0x983f00 to 0x984018 (280 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onSelectMode @ 0x9840f0
// > ??> @ 0xfeef0
//
// 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:57:52 +0000
//
__int64 __fastcall CustomizeObjectLayer::toggleVisible(CustomizeObjectLayer *this)
{
unsigned int v2; // w20
__int64 v3; // x0
bool v4; // cf
unsigned int v5; // w1
unsigned int v6; // w20
__int64 v7; // x0
unsigned int v8; // w1
unsigned int v9; // w20
__int64 v10; // x0
unsigned int v11; // w1
__int64 v12; // x0
v2 = 0;
for ( *((_BYTE *)this + 920) = *((_DWORD *)this + 186) == 3;
;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, *((unsigned __int8 *)this + 920) ^ 1u) )
{
v4 = v2 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 89));
v5 = v2++;
if ( v4 )
break;
v3 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 89), v5);
}
v6 = 0;
while ( 1 )
{
v4 = v6 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 92));
v8 = v6++;
if ( v4 )
break;
v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 92), v8);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, *((unsigned __int8 *)this + 920) ^ 1u);
}
v9 = 0;
if ( *((_BYTE *)this + 921) )
{
while ( 1 )
{
v4 = v9 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 90));
v11 = v9++;
if ( v4 )
break;
v10 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 90), v11);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 344LL))(v10, *((unsigned __int8 *)this + 920));
}
v12 = *((_QWORD *)this + 103);
if ( v12 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 1000LL))(v12, *((unsigned __int8 *)this + 920));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 103) + 344LL))(
*((_QWORD *)this + 103),
*((unsigned __int8 *)this + 920));
}
}
return CustomizeObjectLayer::updateCurrentSelection(this);
}