//
// SetGroupIDLayer::removeGroupID from 0xabade0 to 0xabaeb8 (216 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::callRemoveFromGroup @ 0xabaf9c
// > ??> @ 0x989c8
//
// 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::removeGroupID(SetGroupIDLayer *this, unsigned int a2)
{
__int64 v4; // x0
GameManager *v5; // x0
__int64 v6; // x0
unsigned int v7; // w19
__int64 v8; // x21
GameManager *v9; // x0
__int64 v10; // x0
bool v11; // cf
unsigned int v12; // w1
v4 = *((_QWORD *)this + 84);
*((_BYTE *)this + 804) = 1;
if ( v4 )
{
v5 = (GameManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1608LL))(v4);
v6 = GameManager::sharedState(v5);
(*(void (__fastcall **)(_QWORD, _QWORD, _QWORD))(**(_QWORD **)(v6 + 552) + 1360LL))(
*(_QWORD *)(v6 + 552),
*((_QWORD *)this + 84),
a2);
return SetGroupIDLayer::updateGroupIDButtons((cocos2d::CCArray **)this);
}
else
{
v7 = 0;
while ( 1 )
{
v11 = v7 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85));
v12 = v7++;
if ( v11 )
break;
v8 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v12);
v9 = (GameManager *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 1608LL))(v8, a2);
v10 = GameManager::sharedState(v9);
(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(v10 + 552) + 1360LL))(
*(_QWORD *)(v10 + 552),
v8,
a2);
}
return SetGroupIDLayer::updateGroupIDButtons((cocos2d::CCArray **)this);
}
}