//
// GJBaseGameLayer::getGroup from 0x470d76 to 0x470db0 (58 bytes)
//
// 53 xrefs:
// > PlayLayer::addToGroupOld @ 0x3115f0
// > PlayLayer::removeFromGroupOld @ 0x31165e
// > PlayLayer::processLoadedMoveActions @ 0x314e4c
// > PlayLayer::optimizeColorGroups @ 0x3163c8
// > PlayLayer::optimizeOpacityGroups @ 0x31649c
// > PlayLayer::scanDynamicSaveObjects @ 0x317280
// > PlayLayer::loadFromCheckpoint @ 0x31f648
// > LevelTools::sortSpeedObjects @ 0x32ca5c
// > LevelEditorLayer::processLoadedMoveActions @ 0x36fd6e
// > processTraceOutSource @ 0x377704
// > drawTrace @ 0x378064
// > drawTrace @ 0x378342
// > processTrace @ 0x37986e
// > LevelEditorLayer::updateDebugDraw @ 0x37a664
// > KeyframeGameObject::updateShadowObjects @ 0x3eb832
// > GJBaseGameLayer::getPortalTarget @ 0x470dc6
// > GJBaseGameLayer::playAnimationCommand @ 0x470e78
// > GJBaseGameLayer::toggleGroup @ 0x470eca
// > GJBaseGameLayer::addToGroup @ 0x470ffe
// > GJBaseGameLayer::getSingleGroupObject @ 0x47102e
// > GJBaseGameLayer::getCenterGroupObject @ 0x471094
// > GJBaseGameLayer::tryGetGroupParent @ 0x4710d2
// > GJBaseGameLayer::tryGetObject @ 0x472af6
// > GJBaseGameLayer::removeFromGroup @ 0x472eaa
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x473d20
// > GJBaseGameLayer::moveObjectsSilent @ 0x474d9c
// > GJBaseGameLayer::processPlayerFollowActions @ 0x474e7e
// > GJBaseGameLayer::processFollowActions @ 0x475484
// > GJBaseGameLayer::activateResetTrigger @ 0x475fc6
// > GJBaseGameLayer::spawnParticleTrigger @ 0x477928
// > GJBaseGameLayer::volumeForProximityEffect @ 0x4785aa
// > GJBaseGameLayer::processRotationActions @ 0x47f562
// > GJBaseGameLayer::processTransformActions @ 0x47fa38
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fa0
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fbe
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x48101a
// > GJBaseGameLayer::spawnGroup @ 0x4817d6
// > GJBaseGameLayer::positionUIObjects @ 0x4824fe
// > GJBaseGameLayer::activateSFXEditTrigger @ 0x484c62
// > GJBaseGameLayer::playKeyframeAnimation @ 0x4887fc
// > GJBaseGameLayer::calculateColorGroups @ 0x488c10
// > GJBaseGameLayer::optimizeMoveGroups @ 0x488d20
// > GJBaseGameLayer::sortGroups @ 0x489d8e
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x48a162
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b5de
// > GJBaseGameLayer::generateVisibilityGroups @ 0x48d01a
// > GJBaseGameLayer::generateVisibilityGroups @ 0x48d0c8
// > GJBaseGameLayer::generateVisibilityGroups @ 0x48d154
// > GJBaseGameLayer::generateTargetGroups @ 0x48d422
// > GJBaseGameLayer::generateTargetGroups @ 0x48d7c8
// > GJBaseGameLayer::generateTargetGroups @ 0x48d86a
// > GJBaseGameLayer::controlTriggersInGroup @ 0x495e44
// > GJBaseGameLayer::processAreaEffects @ 0x4969fe
//
// 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 *GJBaseGameLayer::getGroup(GJBaseGameLayer *a1, int a2)
{
intptr_t v3; // r4
cocos2d::CCArray *v4; // r5
if ( a2 >= 9999 )
a2 = 9999;
v3 = a2 & ~(a2 >> 31);
v4 = a1->m_groups.m_start[v3];
if ( !v4 )
{
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
cocos2d::CCDictionary::setObject(a1->m_groupDict, v4, v3);
a1->m_groups.m_start[v3] = v4;
}
return v4;
}