//
// GJBaseGameLayer::getGroup from 0x140224280 to 0x1402242ef (111 bytes)
//
// 36 xrefs:
// > GJBaseGameLayer::teleportPlayer @ 0x14020fe9b
// > GJBaseGameLayer::playKeyframeAnimation @ 0x140217bee
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x14021a2a7
// > GJBaseGameLayer::spawnGroup @ 0x14021ad5b
// > GJBaseGameLayer::controlTriggersInGroup @ 0x14021e1b5
// > GJBaseGameLayer::triggerMoveCommand @ 0x14021edeb
// > GJBaseGameLayer::toggleGroup @ 0x140223c36
// > GJBaseGameLayer::addToGroup @ 0x140223ffc
// > GJBaseGameLayer::removeFromGroup @ 0x140224174
// > GJBaseGameLayer::tryGetMainObject @ 0x14022454e
// > GJBaseGameLayer::tryGetObject @ 0x1402245cb
// > GJBaseGameLayer::positionUIObjects @ 0x1402261ba
// > GJBaseGameLayer::triggerAreaEffect @ 0x14022734c
// > GJBaseGameLayer::processRotationActions @ 0x14022b999
// > GJBaseGameLayer::processTransformActions @ 0x14022c869
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ec67
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ecc5
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ed69
// > GJBaseGameLayer::processFollowActions @ 0x14023065f
// > GJBaseGameLayer::optimizeMoveGroups @ 0x140231224
// > GJBaseGameLayer::updateCamera @ 0x14023d018
// > GJBaseGameLayer::spawnParticleTrigger @ 0x14023ff48
// > GJBaseGameLayer::activateSFXEditTrigger @ 0x140241edf
// > GJBaseGameLayer::volumeForProximityEffect @ 0x140242697
// > LevelEditorLayer::addToGroup @ 0x1402dea32
// > LevelEditorLayer::removeFromGroup @ 0x1402deb84
// > sub_1402E2370 @ 0x1402e289a
// > sub_1402E5800 @ 0x1402e5d07
// > sub_1402E5800 @ 0x1402e607d
// > LevelTools::sortSpeedObjects @ 0x14032d9df
// > EffectGameObject::triggerObject @ 0x1404a6ad4
// > EffectGameObject::triggerObject @ 0x1404a7eac
// > KeyframeGameObject::updateShadowObjects @ 0x1404b553c
// > ??> @ 0x14067ffb4
// > ??> @ 0x14067ffc4
// > ??> @ 0x1406cd6a4
//
// 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
//
// local variable allocation has failed, the output may be wrong!
cocos2d::CCArray *GJBaseGameLayer::getGroup(GJBaseGameLayer *a1, int a2)
{
__int64 v3; // rsi
cocos2d::CCArray *result; // rax
cocos2d::CCArray *v5; // rbx
if ( a2 > 9999 )
*(_QWORD *)&a2 = 9999;
if ( a2 < 0 )
*(_QWORD *)&a2 = 0;
v3 = (unsigned int)a2;
result = a1->m_groups._Mypair._Myval2._Myfirst[*(_QWORD *)&a2];
if ( !result )
{
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
cocos2d::CCDictionary::setObject(a1->m_groupDict, v5, (unsigned int)v3);
a1->m_groups._Mypair._Myval2._Myfirst[v3] = v5;
return v5;
}
return result;
}