//
// GJBaseGameLayer::addToGroup from 0x9a0a5c to 0x9a0aec (144 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::addToGroup @ 0x78ce18
// > ??> @ 0x91e58
// > ??> @ 0x1428988
// > ??> @ 0x14757b8
//
// 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 12:58:06 +0000
//
GJBaseGameLayer *__fastcall GJBaseGameLayer::addToGroup(GJBaseGameLayer *this, GameObject *a2, int a3)
{
GJBaseGameLayer *v5; // x21
cocos2d::CCObject *Group; // x0
cocos2d::CCObject *OptimizedGroup; // x0
if ( a3 <= 9999 )
{
v5 = this;
Group = GJBaseGameLayer::getGroup(this, a3);
cocos2d::CCArray::addObject(Group, a2);
if ( *((_BYTE *)a2 + 1290) )
OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(v5, a3);
else
OptimizedGroup = GJBaseGameLayer::getStaticGroup(v5, a3);
return (GJBaseGameLayer *)cocos2d::CCArray::addObject(OptimizedGroup, a2);
}
return this;
}