//
// GJBaseGameLayer::tryGetMainObject from 0x9a0d38 to 0x9a0d84 (76 bytes)
//
// 36 xrefs:
// > PlayLayer::activatePlatformerEndTrigger @ 0x704678
// > PlayLayer::processCheckpoints @ 0x710cd0
// > GJBaseGameLayer::triggerTransformCommand @ 0x9a0e54
// > GJBaseGameLayer::updateGradientLayers @ 0x9a1434
// > GJBaseGameLayer::updateGradientLayers @ 0x9a1444
// > GJBaseGameLayer::updateGradientLayers @ 0x9a1454
// > GJBaseGameLayer::updateGradientLayers @ 0x9a1464
// > GJBaseGameLayer::positionForShaderTarget @ 0x9a2358
// > GJBaseGameLayer::speedForShaderTarget @ 0x9a2454
// > GJBaseGameLayer::tryGetObject @ 0x9a3000
// > GJBaseGameLayer::getMoveTargetDelta @ 0x9a3248
// > GJBaseGameLayer::getMoveTargetDelta @ 0x9a3320
// > GJBaseGameLayer::processFollowActions @ 0x9a6fc8
// > GJBaseGameLayer::getCameraEdgeValue @ 0x9a8660
// > GJBaseGameLayer::getCameraEdgeValue @ 0x9a86d4
// > GJBaseGameLayer::getCameraEdgeValue @ 0x9a872c
// > GJBaseGameLayer::volumeForProximityEffect @ 0x9aa968
// > GJBaseGameLayer::visit @ 0x9ac3f8
// > GJBaseGameLayer::visit @ 0x9ac408
// > GJBaseGameLayer::visit @ 0x9ac418
// > GJBaseGameLayer::visit @ 0x9ac428
// > GJBaseGameLayer::spawnParticleTrigger @ 0x9aef48
// > GJBaseGameLayer::processRotationActions @ 0x9bfde4
// > GJBaseGameLayer::processTransformActions @ 0x9c062c
// > GJBaseGameLayer::playKeyframeAnimation @ 0x9c3bb8
// > GJBaseGameLayer::optimizeMoveGroups @ 0x9c5260
// > GJBaseGameLayer::getSavedPosition @ 0x9c70a0
// > GJBaseGameLayer::getSavedPosition @ 0x9c7210
// > GJBaseGameLayer::positionUIObjects @ 0x9ccba0
// > GJBaseGameLayer::processAreaEffects @ 0x9d6f6c
// > GJBaseGameLayer::updateCamera @ 0x9e4910
// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x9e7c64
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x9eaa00
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x9f35e0
// > EditorUI::findObject @ 0xbdd908
// > ??> @ 0xb56d8
//
// 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
//
__int64 __fastcall GJBaseGameLayer::tryGetMainObject(cocos2d::CCDictionary **this, int a2)
{
__int64 result; // x0
if ( a2 <= 0 )
return 0;
result = GJBaseGameLayer::getGroupParent(this, a2);
if ( !result )
return GJBaseGameLayer::getSingleGroupObject((GJBaseGameLayer *)this, a2);
return result;
}