//
// GJBaseGameLayer::getStaticGroup from 0x5909e0 to 0x590a1a (58 bytes)
//
// 7 xrefs:
// > PlayLayer::addToGroupOld @ 0x400ad4
// > GJBaseGameLayer::addToGroup @ 0x590a80
// > GJBaseGameLayer::removeFromGroup @ 0x5929c8
// > GJBaseGameLayer::processMoveActions @ 0x5947bc
// > GJBaseGameLayer::moveObjectToStaticGroup @ 0x5951a0
// > GJBaseGameLayer::processRotationActions @ 0x5a3298
// > GJBaseGameLayer::processTransformActions @ 0x5a3782
//
// 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
//
cocos2d::CCObject *__fastcall GJBaseGameLayer::getStaticGroup(GJBaseGameLayer *this, int a2)
{
int v3; // r4
cocos2d::CCObject *v4; // r5
if ( a2 >= 9999 )
a2 = 9999;
v3 = a2 & ~(a2 >> 31);
v4 = *(cocos2d::CCObject **)(*((_DWORD *)this + 574) + 4 * v3);
if ( !v4 )
{
v4 = (cocos2d::CCObject *)cocos2d::CCArray::create(this);
cocos2d::CCDictionary::setObject(*((cocos2d::CCDictionary **)this + 569), v4, v3);
*(_DWORD *)(*((_DWORD *)this + 574) + 4 * v3) = v4;
}
return v4;
}