//
// PlayLayer::removeFromGroupOld from 0x400af2 to 0x400b2a (56 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:47:24 +0000
//
GJBaseGameLayer *__fastcall PlayLayer::removeFromGroupOld(GJBaseGameLayer *this, GameObject *a2)
{
GJBaseGameLayer *v2; // r6
int i; // r4
int GroupID; // r0
cocos2d::CCArray *Group; // r0
v2 = this;
if ( *((__int16 *)a2 + 510) > 0 )
{
for ( i = 0; i < *((__int16 *)a2 + 510); ++i )
{
GroupID = GameObject::getGroupID(a2, i);
Group = (cocos2d::CCArray *)GJBaseGameLayer::getGroup(v2, GroupID);
this = (GJBaseGameLayer *)cocos2d::CCArray::removeObject(Group, a2, 1);
}
}
return this;
}