//
// GJBaseGameLayer::tryGetMainObject from 0x471106 to 0x471128 (34 bytes)
//
// 32 xrefs:
// > PlayLayer::activatePlatformerEndTrigger @ 0x313c88
// > PlayLayer::processCheckpoints @ 0x31f1ea
// > GJBaseGameLayer::triggerTransformCommand @ 0x471190
// > GJBaseGameLayer::updateGradientLayers @ 0x471708
// > GJBaseGameLayer::updateGradientLayers @ 0x471714
// > GJBaseGameLayer::updateGradientLayers @ 0x471720
// > GJBaseGameLayer::updateGradientLayers @ 0x47172c
// > GJBaseGameLayer::positionForShaderTarget @ 0x472300
// > GJBaseGameLayer::speedForShaderTarget @ 0x4723bc
// > GJBaseGameLayer::tryGetObject @ 0x472aec
// > GJBaseGameLayer::getMoveTargetDelta @ 0x472c7c
// > GJBaseGameLayer::getMoveTargetDelta @ 0x472cb2
// > GJBaseGameLayer::processFollowActions @ 0x475490
// > GJBaseGameLayer::getCameraEdgeValue @ 0x476890
// > GJBaseGameLayer::spawnParticleTrigger @ 0x477938
// > GJBaseGameLayer::volumeForProximityEffect @ 0x47861c
// > GJBaseGameLayer::visit @ 0x479f6a
// > GJBaseGameLayer::visit @ 0x479f76
// > GJBaseGameLayer::visit @ 0x479f82
// > GJBaseGameLayer::visit @ 0x479f8e
// > GJBaseGameLayer::processRotationActions @ 0x47f536
// > GJBaseGameLayer::processTransformActions @ 0x47fa06
// > GJBaseGameLayer::positionUIObjects @ 0x482516
// > GJBaseGameLayer::updateCamera @ 0x48679a
// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x48831a
// > GJBaseGameLayer::playKeyframeAnimation @ 0x48888e
// > GJBaseGameLayer::optimizeMoveGroups @ 0x488ce4
// > GJBaseGameLayer::getSavedPosition @ 0x489f2a
// > GJBaseGameLayer::getSavedPosition @ 0x489fce
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x48a310
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x495028
// > GJBaseGameLayer::processAreaEffects @ 0x4966ca
//
// 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
//
GameObject *GJBaseGameLayer::tryGetMainObject(GJBaseGameLayer *a1, int a2)
{
GameObject *result; // r0
if ( a2 <= 0 )
return nullptr;
result = (GameObject *)cocos2d::CCDictionary::objectForKey(a1->m_parentGroupsDict, a2);
if ( !result )
return GJBaseGameLayer::getSingleGroupObject(a1, a2);
return result;
}