//
// GJBaseGameLayer::getGroup from 0x85d2bc to 0x85d340 (132 bytes)
//
// 54 xrefs:
// > PlayLayer::addToGroupOld @ 0x5cd07c
// > PlayLayer::removeFromGroupOld @ 0x5cd140
// > PlayLayer::processLoadedMoveActions @ 0x5d3df0
// > PlayLayer::optimizeColorGroups @ 0x5d8294
// > PlayLayer::optimizeOpacityGroups @ 0x5d8434
// > PlayLayer::scanDynamicSaveObjects @ 0x5d8610
// > PlayLayer::loadFromCheckpoint @ 0x5e4e30
// > LevelTools::sortSpeedObjects @ 0x606a2c
// > LevelEditorLayer::processLoadedMoveActions @ 0x66c194
// > drawTrace @ 0x675a84
// > drawTrace @ 0x675d18
// > processTraceOutSource @ 0x680064
// > processTrace @ 0x682d7c
// > LevelEditorLayer::updateDebugDraw @ 0x684cc4
// > KeyframeGameObject::updateShadowObjects @ 0x763b30
// > GJBaseGameLayer::getPortalTarget @ 0x85d370
// > GJBaseGameLayer::playAnimationCommand @ 0x85d418
// > GJBaseGameLayer::toggleGroup @ 0x85d4c8
// > GJBaseGameLayer::addToGroup @ 0x85d75c
// > GJBaseGameLayer::getSingleGroupObject @ 0x85d7c4
// > GJBaseGameLayer::getCenterGroupObject @ 0x85d890
// > GJBaseGameLayer::tryGetGroupParent @ 0x85d920
// > GJBaseGameLayer::tryGetObject @ 0x85fc68
// > GJBaseGameLayer::removeFromGroup @ 0x860260
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x861758
// > GJBaseGameLayer::moveObjectsSilent @ 0x8631c8
// > GJBaseGameLayer::processPlayerFollowActions @ 0x863310
// > GJBaseGameLayer::processFollowActions @ 0x863bb8
// > GJBaseGameLayer::activateResetTrigger @ 0x8652a4
// > GJBaseGameLayer::spawnParticleTrigger @ 0x867678
// > GJBaseGameLayer::volumeForProximityEffect @ 0x868af8
// > GJBaseGameLayer::processRotationActions @ 0x86e970
// > GJBaseGameLayer::processTransformActions @ 0x86ebac
// > GJBaseGameLayer::spawnGroup @ 0x874ab0
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x8773f0
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x877440
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x877460
// > GJBaseGameLayer::positionUIObjects @ 0x878768
// > GJBaseGameLayer::playKeyframeAnimation @ 0x880d60
// > GJBaseGameLayer::calculateColorGroups @ 0x8815e8
// > GJBaseGameLayer::optimizeMoveGroups @ 0x88183c
// > GJBaseGameLayer::generateVisibilityGroups @ 0x882ff4
// > GJBaseGameLayer::generateVisibilityGroups @ 0x883138
// > GJBaseGameLayer::generateVisibilityGroups @ 0x88323c
// > GJBaseGameLayer::sortGroups @ 0x883504
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x884098
// > GJBaseGameLayer::generateTargetGroups @ 0x887e24
// > GJBaseGameLayer::generateTargetGroups @ 0x888654
// > GJBaseGameLayer::generateTargetGroups @ 0x8887ac
// > GJBaseGameLayer::activateSFXEditTrigger @ 0x88d238
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x88db58
// > GJBaseGameLayer::controlTriggersInGroup @ 0x8991d4
// > GJBaseGameLayer::processAreaEffects @ 0x89c5e4
// > ??> @ 0x2c2c8
//
// 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)
{
int v2; // w19
cocos2d::CCArray **m_start; // x1
cocos2d::CCArray *v6; // x20
if ( a2 > 9999 )
a2 = 9999;
if ( a2 < 0 )
v2 = 0;
else
v2 = a2;
m_start = a1->m_groups.m_start;
if ( m_start[v2] )
return m_start[v2];
v6 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
cocos2d::CCDictionary::setObject(a1->m_groupDict, v6, v2);
a1->m_groups.m_start[v2] = v6;
return v6;
}