//
// GJBaseGameLayer::getGroup from 0x14032bf10 to 0x14032bf7f (111 bytes)
//
// 32 xrefs:
// > EditorUI::findObject @ 0x1401c912e
// > GJBaseGameLayer::teleportPlayer @ 0x140316012
// > GJBaseGameLayer::setupLevelStart @ 0x14031942e
// > GJBaseGameLayer::playKeyframeAnimation @ 0x14031f2a3
// > GJBaseGameLayer::spawnGroup @ 0x1403224bf
// > GJBaseGameLayer::controlTriggersInGroup @ 0x140325ab5
// > GJBaseGameLayer::triggerMoveCommand @ 0x1403268b8
// > GJBaseGameLayer::toggleGroup @ 0x14032b8ca
// > GJBaseGameLayer::addToGroup @ 0x14032bc7c
// > GJBaseGameLayer::removeFromGroup @ 0x14032bdf4
// > GJBaseGameLayer::tryGetMainObject @ 0x14032c260
// > GJBaseGameLayer::tryGetObject @ 0x14032c2eb
// > GJBaseGameLayer::positionUIObjects @ 0x14032eef7
// > GJBaseGameLayer::triggerAreaEffect @ 0x14032ffdc
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x140337787
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1403377e5
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x140337889
// > GJBaseGameLayer::spawnParticleTrigger @ 0x140349b68
// > GJBaseGameLayer::activateSFXEditTrigger @ 0x14034c008
// > GJBaseGameLayer::volumeForProximityEffect @ 0x14034c7e7
// > LevelEditorLayer::addToGroup @ 0x1403fd372
// > LevelEditorLayer::removeFromGroup @ 0x1403fd4c4
// > sub_140401DD0 @ 0x140402239
// > sub_140406240 @ 0x140406702
// > sub_140406240 @ 0x1404069b3
// > LevelTools::sortSpeedObjects @ 0x14046852f
// > EffectGameObject::triggerObject @ 0x1406485fe
// > EffectGameObject::triggerObject @ 0x1406499c9
// > KeyframeGameObject::updateShadowObjects @ 0x1406568ec
// > ??> @ 0x1408b6000
// > ??> @ 0x1408b6010
// > ??> @ 0x14091f250
//
// This function is hookable on this platform (idp: pc, 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 11:30:30 +0000
//
struct cocos2d::CCObject *__fastcall GJBaseGameLayer::getGroup(__int64 a1, __int64 a2)
{
__int64 v3; // rsi
struct cocos2d::CCObject *result; // rax
struct cocos2d::CCObject *v5; // rbx
if ( (int)a2 > 9999 )
a2 = 9999;
if ( (int)a2 < 0 )
a2 = 0;
v3 = (unsigned int)a2;
result = *(struct cocos2d::CCObject **)(*(_QWORD *)(a1 + 3896) + 8 * a2);
if ( !result )
{
v5 = (struct cocos2d::CCObject *)cocos2d::CCArray::create(a1);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 3872), v5, (unsigned int)v3);
*(_QWORD *)(*(_QWORD *)(a1 + 3896) + 8 * v3) = v5;
return v5;
}
return result;
}