//
// TouchControlEditLayer::hideSiblings from 0xd0525c to 0xd05344 (232 bytes)
//
// 2 xrefs:
// > TouchControlEditLayer::onEnter @ 0xd05364
// > ??> @ 0x49e58
//
// 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 13:06:56 +0000
//
cocos2d::CCArray *__fastcall TouchControlEditLayer::hideSiblings(TouchControlEditLayer *this)
{
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v3; // x21
unsigned int v4; // w19
bool v5; // cf
unsigned int v6; // w1
TouchControlEditLayer *v7; // x0
cocos2d::CCObject *v8; // x20
cocos2d::CCObject *v9; // x0
result = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(TouchControlEditLayer *))(*(_QWORD *)this + 512LL))(this);
if ( result )
{
result = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCArray *))(*(_QWORD *)result + 488LL))(result);
v3 = result;
if ( result )
{
if ( !*((_QWORD *)this + 160) )
{
v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr);
*((_QWORD *)this + 160) = v9;
cocos2d::CCObject::retain(v9);
}
v4 = 0;
v5 = (unsigned int)cocos2d::CCArray::count(v3) == 0;
v6 = 0;
for ( result = v3; !v5; result = v3 )
{
v7 = (TouchControlEditLayer *)cocos2d::CCArray::objectAtIndex(result, v6);
v8 = v7;
if ( this != v7
&& v4
&& (*(unsigned __int8 (__fastcall **)(TouchControlEditLayer *))(*(_QWORD *)v7 + 352LL))(v7) )
{
++v4;
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v8 + 344LL))(v8, 0);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 160), v8);
}
else
{
++v4;
}
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(v3);
v6 = v4;
}
}
}
return result;
}