//
// SetGroupIDLayer::onRemoveFromGroup from 0x1405930b0 to 0x140593185 (213 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::updateGroupIDButtons @ 0x140592955
// > ??> @ 0x1408dda24
// > ??> @ 0x1408dda34
// > ??> @ 0x14092ce40
//
// This function is hookable on this platform (idp: pc, 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 11:34:32 +0000
//
void __fastcall SetGroupIDLayer::onRemoveFromGroup(__int64 a1, __int64 a2)
{
unsigned int i; // ebx
struct cocos2d::CCObject *v5; // rax
__int64 v6; // rcx
__int64 v7; // rax
__int64 v8; // rax
if ( !*(_BYTE *)(a1 + 798) )
{
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 696)); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 696), i);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v5 + 936LL))(v5, 0);
}
*(_BYTE *)(a1 + 798) = 1;
*(_DWORD *)(a1 + 800) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v7 = cocos2d::CCDirector::sharedDirector(v6);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 112LL))(v7);
cocos2d::CCScheduler::scheduleSelector(v8, SetGroupIDLayer::callRemoveFromGroup, a1);
}
}