//
// GJBaseGameLayer::tryGetMainObject from 0x100286398 to 0x1002863e0 (72 bytes)
//
// 33 xrefs:
// > PlayLayer::activatePlatformerEndTrigger @ 0x100144c7c
// > PlayLayer::processCheckpoints @ 0x10014876c
// > EditorUI::findObject @ 0x1001a6a04
// > GJBaseGameLayer::optimizeMoveGroups @ 0x10027a738
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027aecc
// > GJBaseGameLayer::positionUIObjects @ 0x10027bf20
// > GJBaseGameLayer::tryGetObject @ 0x100281034
// > GJBaseGameLayer::spawnParticleTrigger @ 0x10028501c
// > GJBaseGameLayer::playKeyframeAnimation @ 0x100286300
// > GJBaseGameLayer::getMoveTargetDelta @ 0x100286f70
// > GJBaseGameLayer::getMoveTargetDelta @ 0x100286ff0
// > GJBaseGameLayer::getSavedPosition @ 0x100287130
// > GJBaseGameLayer::getSavedPosition @ 0x100287180
// > GJBaseGameLayer::triggerTransformCommand @ 0x10028b164
// > GJBaseGameLayer::updateGradientLayers @ 0x10028bce0
// > GJBaseGameLayer::updateGradientLayers @ 0x10028bcf0
// > GJBaseGameLayer::updateGradientLayers @ 0x10028bd00
// > GJBaseGameLayer::updateGradientLayers @ 0x10028bd10
// > GJBaseGameLayer::positionForShaderTarget @ 0x10028d618
// > GJBaseGameLayer::speedForShaderTarget @ 0x10028d71c
// > GJBaseGameLayer::processAreaEffects @ 0x100290698
// > GJBaseGameLayer::processTransformActions @ 0x1002938f0
// > GJBaseGameLayer::processRotationActions @ 0x100294288
// > GJBaseGameLayer::processFollowActions @ 0x100294c64
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x100295dd0
// > GJBaseGameLayer::getCameraEdgeValue @ 0x10029940c
// > GJBaseGameLayer::updateCamera @ 0x10029c1d0
// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x1002a0a70
// > GJBaseGameLayer::volumeForProximityEffect @ 0x1002a2780
// > GJBaseGameLayer::visit @ 0x1002a5950
// > GJBaseGameLayer::visit @ 0x1002a5960
// > GJBaseGameLayer::visit @ 0x1002a5970
// > GJBaseGameLayer::visit @ 0x1002a5980
//
// 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 11:01:58 +0000
//
__int64 __fastcall GJBaseGameLayer::tryGetMainObject(__int64 a1, __int64 a2)
{
int v2; // w19
__int64 result; // x0
if ( (int)a2 < 1 )
return 0;
v2 = a2;
result = sub_10028E320(a1, a2);
if ( !result )
return GJBaseGameLayer::getSingleGroupObject(a1, v2);
return result;
}