//
// GJBaseGameLayer::getGroup from 0x1001e2404 to 0x1001e2468 (100 bytes)
//
// 48 xrefs:
// > PlayLayer::optimizeColorGroups @ 0x1001174c8
// > PlayLayer::optimizeOpacityGroups @ 0x100117628
// > PlayLayer::scanDynamicSaveObjects @ 0x100117820
// > PlayLayer::processLoadedMoveActions @ 0x10011c364
// > PlayLayer::loadFromCheckpoint @ 0x100121334
// > LevelTools::sortSpeedObjects @ 0x1001a9a68
// > GJBaseGameLayer::sortGroups @ 0x1001dfe90
// > GJBaseGameLayer::optimizeMoveGroups @ 0x1001e0168
// > GJBaseGameLayer::generateTargetGroups @ 0x1001e0fcc
// > GJBaseGameLayer::generateTargetGroups @ 0x1001e11c8
// > GJBaseGameLayer::generateTargetGroups @ 0x1001e1534
// > GJBaseGameLayer::positionUIObjects @ 0x1001e184c
// > GJBaseGameLayer::generateVisibilityGroups @ 0x1001e1c24
// > GJBaseGameLayer::generateVisibilityGroups @ 0x1001e1d38
// > GJBaseGameLayer::generateVisibilityGroups @ 0x1001e1dfc
// > GJBaseGameLayer::calculateColorGroups @ 0x1001e2340
// > GJBaseGameLayer::getPortalTarget @ 0x1001e4288
// > GJBaseGameLayer::tryGetObject @ 0x1001e5e80
// > GJBaseGameLayer::spawnParticleTrigger @ 0x1001e971c
// > GJBaseGameLayer::playAnimationCommand @ 0x1001ea5ec
// > GJBaseGameLayer::playKeyframeAnimation @ 0x1001ea680
// > GJBaseGameLayer::spawnGroup @ 0x1001ec1f8
// > GJBaseGameLayer::controlTriggersInGroup @ 0x1001edd94
// > GJBaseGameLayer::moveObjectsSilent @ 0x1001eeaac
// > GJBaseGameLayer::toggleGroup @ 0x1001f20dc
// > GJBaseGameLayer::addToGroup @ 0x1001f249c
// > GJBaseGameLayer::removeFromGroup @ 0x1001f2630
// > GJBaseGameLayer::getSingleGroupObject @ 0x1001f27a8
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x1001f40b8
// > GJBaseGameLayer::processAreaEffects @ 0x1001f48d8
// > GJBaseGameLayer::processTransformActions @ 0x1001f7698
// > GJBaseGameLayer::processRotationActions @ 0x1001f8024
// > GJBaseGameLayer::processPlayerFollowActions @ 0x1001f8634
// > GJBaseGameLayer::processFollowActions @ 0x1001f89b0
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f95f0
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f9644
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f96d8
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x1001f99f8
// > GJBaseGameLayer::activateResetTrigger @ 0x1001fb504
// > GJBaseGameLayer::activateSFXEditTrigger @ 0x1002031b8
// > GJBaseGameLayer::volumeForProximityEffect @ 0x1002054c0
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206a00
// > sub_100364844 @ 0x100364adc
// > sub_100365890 @ 0x1003666f8
// > sub_100366FC4 @ 0x1003672ec
// > sub_100366FC4 @ 0x100367418
// > LevelEditorLayer::updateDebugDraw @ 0x100368918
// > KeyframeGameObject::updateShadowObjects @ 0x10038b094
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCArray *__fastcall GJBaseGameLayer::getGroup(GJBaseGameLayer *a1, int a2)
{
int v2; // w8
intptr_t v3; // x20
cocos2d::CCArray *v4; // x21
if ( a2 >= 9999 )
v2 = 9999;
else
v2 = a2;
v3 = v2 & (unsigned int)~(v2 >> 31);
v4 = a1->m_groups.__begin_[(unsigned int)v3];
if ( !v4 )
{
v4 = (cocos2d::CCArray *)sub_10024A15C(a1);
cocos2d::CCDictionary::setObject(a1->m_groupDict, v4, v3);
a1->m_groups.__begin_[v3] = v4;
}
return v4;
}