//
// SetGroupIDLayer::onRemoveFromGroup from 0xab98d0 to 0xab9988 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0x6d318
// > SetGroupIDLayer::updateGroupIDButtons @ 0xaba88c
// > ??> @ 0x1542b40
//
// 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:01:01 +0000
//
__int64 __fastcall SetGroupIDLayer::onRemoveFromGroup(__int64 this, cocos2d::CCObject *a2)
{
__int64 v3; // x20
unsigned int v4; // w19
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
cocos2d::CCDirector *v8; // x0
__int64 v9; // x0
__int64 v10; // x0
if ( !*(_BYTE *)(this + 798) )
{
v3 = this;
v4 = 0;
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v3 + 696));
v7 = v4++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v3 + 696), v7);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1056LL))(v5, 0);
}
*(_BYTE *)(v3 + 798) = 1;
v8 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
*(_DWORD *)(v3 + 800) = (_DWORD)v8;
v9 = cocos2d::CCDirector::sharedDirector(v8);
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 128LL))(v9);
return cocos2d::CCScheduler::scheduleSelector(
v10,
SetGroupIDLayer::callRemoveFromGroup,
0,
v3,
4294967294LL,
0,
0.0,
0.0);
}
return this;
}