//
// LevelEditorLayer::forceShowSelectedObjects from 0x78bcbc to 0x78bd64 (168 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateVisibility @ 0x78e26c
// > LevelEditorLayer::updateVisibility @ 0x78e284
// > ??> @ 0x7a7b8
//
// 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:53:27 +0000
//
_QWORD *__fastcall LevelEditorLayer::forceShowSelectedObjects(_QWORD *this, unsigned __int8 a2)
{
int v2; // w19
__int64 v3; // x1
_QWORD *v4; // x20
cocos2d::CCObject *v5; // x1
unsigned int v6; // w2
unsigned __int64 i; // x4
char v8; // w3
__int64 v9; // x2
v2 = a2;
v3 = *(this + 1781);
if ( v3 )
{
v4 = this;
if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v3 + 896)) )
{
this = *(_QWORD **)(v4[1781] + 896LL);
}
else
{
this = *(_QWORD **)(v4[1781] + 1496LL);
if ( !this )
return this;
this = (_QWORD *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)this, v5);
}
if ( this )
{
this = (_QWORD *)*(this + 7);
v6 = *(_DWORD *)this;
if ( *(_DWORD *)this )
{
this = (_QWORD *)*(this + 2);
for ( i = (unsigned __int64)(this + v6 - 1); i >= (unsigned __int64)this; *(_BYTE *)(v9 + 650) = v8 )
{
v9 = *this;
if ( !*this )
break;
if ( v2 )
{
v8 = 0;
*(_BYTE *)(v9 + 651) = *(_BYTE *)(v9 + 650);
}
else
{
v8 = *(_BYTE *)(v9 + 651);
}
++this;
}
}
}
}
return this;
}