//
// TouchControlEditLayer::restoreSiblings from 0x7a34dc to 0x7a352e (82 bytes)
//
// 1 xrefs:
// > TouchControlEditLayer::onExit @ 0x7a3532
//
// 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:59:55 +0000
//
int __fastcall TouchControlEditLayer::restoreSiblings(int this)
{
int v1; // r7
int v2; // r3
_DWORD *v3; // r2
int *v4; // r4
int *v5; // r5
int v6; // r6
int v7; // t1
v1 = this;
v2 = *(_DWORD *)(this + 948);
if ( v2 )
{
v3 = *(_DWORD **)(v2 + 52);
if ( *v3 )
{
v4 = (int *)v3[3];
v5 = &v4[*v3 - 1];
while ( v4 <= v5 )
{
v7 = *v4++;
v6 = v7;
if ( !v7 )
break;
if ( (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 256))(v6) )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 172))(v6, 1);
}
}
return cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(v1 + 948));
}
return this;
}