//
// SetGroupIDLayer::callRemoveFromGroup from 0x63a828 to 0x63a8da (178 bytes)
//
// 0 xrefs:
//
// 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:55:23 +0000
//
void __fastcall SetGroupIDLayer::callRemoveFromGroup(SetGroupIDLayer *this, float a2)
{
GameManager *v3; // r0
unsigned int v4; // r5
int v5; // r0
GameManager *v6; // r6
int v7; // r0
GameManager *isGroupParentOf; // r0
int v9; // r0
cocos2d::CCNode::unschedule(this, SetGroupIDLayer::callRemoveFromGroup, 0);
*((_BYTE *)this + 610) = 0;
v3 = (GameManager *)cocos2d::CCDictionary::objectForKey(
*((cocos2d::CCDictionary **)this + 156),
*((_DWORD *)this + 153));
if ( v3
|| (v3 = (GameManager *)cocos2d::CCDictionary::objectForKey(
*((cocos2d::CCDictionary **)this + 157),
*((_DWORD *)this + 153))) != nullptr )
{
v4 = *((_DWORD *)this + 131);
if ( v4 )
{
v5 = GameManager::sharedState(v3);
GJBaseGameLayer::removeGroupParent(
*(cocos2d::CCDictionary ***)(v5 + 408),
*((GameObject **)this + 131),
*((_DWORD *)this + 153));
}
else
{
while ( v4 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 132)) )
{
v6 = (GameManager *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 132), v4);
v7 = GameManager::sharedState(v6);
isGroupParentOf = (GameManager *)GJBaseGameLayer::isGroupParentOf(
*(cocos2d::CCDictionary ***)(v7 + 408),
v6,
*((_DWORD *)this + 153));
if ( isGroupParentOf )
{
v9 = GameManager::sharedState(isGroupParentOf);
GJBaseGameLayer::removeGroupParent(*(cocos2d::CCDictionary ***)(v9 + 408), v6, *((_DWORD *)this + 153));
}
++v4;
}
}
SetGroupIDLayer::updateGroupIDButtons((cocos2d::CCArray **)this);
}
else
{
SetGroupIDLayer::removeGroupID(this, *((_DWORD *)this + 153));
}
*((_DWORD *)this + 153) = 0;
}