//
// GJBaseGameLayer::getGroup from 0x9a05f8 to 0x9a067c (132 bytes)
//
// 55 xrefs:
// > PlayLayer::addToGroupOld @ 0x6f4d50
// > PlayLayer::removeFromGroupOld @ 0x6f4e14
// > PlayLayer::processLoadedMoveActions @ 0x6f4f5c
// > PlayLayer::optimizeColorGroups @ 0x704dd0
// > PlayLayer::optimizeOpacityGroups @ 0x704f6c
// > PlayLayer::scanDynamicSaveObjects @ 0x705144
// > PlayLayer::loadFromCheckpoint @ 0x70f904
// > LevelTools::sortSpeedObjects @ 0x72cf14
// > LevelEditorLayer::processLoadedMoveActions @ 0x79a44c
// > drawTrace @ 0x7b5e4c
// > drawTrace @ 0x7b696c
// > processTraceOutSource @ 0x7b94b0
// > processTrace @ 0x7bd37c
// > LevelEditorLayer::updateDebugDraw @ 0x7bf5b0
// > KeyframeGameObject::updateShadowObjects @ 0x888d54
// > GJBaseGameLayer::getPortalTarget @ 0x9a06ac
// > GJBaseGameLayer::playAnimationCommand @ 0x9a0754
// > GJBaseGameLayer::toggleGroup @ 0x9a0804
// > GJBaseGameLayer::addToGroup @ 0x9a0a98
// > GJBaseGameLayer::getSingleGroupObject @ 0x9a0b00
// > GJBaseGameLayer::getCenterGroupObject @ 0x9a0c0c
// > GJBaseGameLayer::tryGetGroupParent @ 0x9a0cd8
// > GJBaseGameLayer::tryGetObject @ 0x9a301c
// > GJBaseGameLayer::removeFromGroup @ 0x9a3728
// > GJBaseGameLayer::triggerAreaEffectAnimation @ 0x9a4ce0
// > GJBaseGameLayer::moveObjectsSilent @ 0x9a66b8
// > GJBaseGameLayer::processPlayerFollowActions @ 0x9a6800
// > GJBaseGameLayer::processFollowActions @ 0x9a6fb8
// > GJBaseGameLayer::activateResetTrigger @ 0x9a7bc8
// > GJBaseGameLayer::volumeForProximityEffect @ 0x9aa7a0
// > GJBaseGameLayer::spawnParticleTrigger @ 0x9aef30
// > GJBaseGameLayer::processRotationActions @ 0x9c0298
// > GJBaseGameLayer::processTransformActions @ 0x9c05a8
// > GJBaseGameLayer::spawnGroup @ 0x9c11ac
// > GJBaseGameLayer::playKeyframeAnimation @ 0x9c39a8
// > GJBaseGameLayer::calculateColorGroups @ 0x9c5064
// > GJBaseGameLayer::optimizeMoveGroups @ 0x9c52b0
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x9c6c98
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x9c6cd4
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x9c6cf4
// > GJBaseGameLayer::sortGroups @ 0x9ca688
// > GJBaseGameLayer::generateTargetGroups @ 0x9cbb28
// > GJBaseGameLayer::generateTargetGroups @ 0x9cc110
// > GJBaseGameLayer::generateTargetGroups @ 0x9cc2ac
// > GJBaseGameLayer::positionUIObjects @ 0x9ccb80
// > GJBaseGameLayer::processAreaEffects @ 0x9d7230
// > GJBaseGameLayer::generateVisibilityGroups @ 0x9db938
// > GJBaseGameLayer::generateVisibilityGroups @ 0x9dbcec
// > GJBaseGameLayer::generateVisibilityGroups @ 0x9dbe14
// > GJBaseGameLayer::activateSFXEditTrigger @ 0x9dfe9c
// > GJBaseGameLayer::controlTriggersInGroup @ 0x9e0358
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x9e20b0
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x9ead8c
// > EditorUI::findObject @ 0xbdd61c
// > ??> @ 0x42da8
//
// 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
//
cocos2d::CCObject *__fastcall GJBaseGameLayer::getGroup(GJBaseGameLayer *this, int a2)
{
int v2; // w19
__int64 v3; // x1
cocos2d::CCObject *v6; // x20
if ( a2 > 9999 )
a2 = 9999;
if ( a2 < 0 )
v2 = 0;
else
v2 = a2;
v3 = *((_QWORD *)this + 452);
if ( *(_QWORD *)(v3 + 8LL * v2) )
return *(cocos2d::CCObject **)(v3 + 8LL * v2);
v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(this);
cocos2d::CCDictionary::setObject(*((cocos2d::CCDictionary **)this + 449), v6, v2);
*(_QWORD *)(*((_QWORD *)this + 452) + 8LL * v2) = v6;
return v6;
}