//
// GJBaseGameLayer::addToGroup from 0x590a54 to 0x590a90 (60 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::addToGroup @ 0x461fe2
//
// 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:53:05 +0000
//
GJBaseGameLayer *__fastcall GJBaseGameLayer::addToGroup(GJBaseGameLayer *this, GameObject *a2, int a3, bool a4)
{
GJBaseGameLayer *v4; // r6
cocos2d::CCObject *Group; // r0
cocos2d::CCObject *OptimizedGroup; // r0
v4 = this;
if ( a3 <= 9999 )
{
Group = GJBaseGameLayer::getGroup(this, a3);
cocos2d::CCArray::addObject(Group, a2);
if ( *((_BYTE *)a2 + 1110) )
OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(v4, a3);
else
OptimizedGroup = GJBaseGameLayer::getStaticGroup(v4, a3);
return (GJBaseGameLayer *)cocos2d::CCArray::addObject(OptimizedGroup, a2);
}
return this;
}