//
// GJBaseGameLayer::setActiveStartPosObject from 0x1002810a4 to 0x1002810fc (88 bytes)
//
// 6 xrefs:
// > PlayLayer::switchToStartPosObject @ 0x10014afe4
// > PlayLayer::togglePracticeMode @ 0x10014b4bc
// > GJBaseGameLayer::processStartPosObjects @ 0x100281524
// > LevelEditorLayer::onPlaytest @ 0x1004047fc
// > LevelEditorLayer::onPlaytest @ 0x1004048b4
// > LevelEditorLayer::onStopPlaytest @ 0x1004052e0
//
// 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:55 +0000
//
_DWORD *__fastcall GJBaseGameLayer::setActiveStartPosObject(__int64 a1, __int64 a2)
{
_DWORD *result; // x0
result = *(_DWORD **)(a1 + 12432);
if ( result != (_DWORD *)a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
result = *(_DWORD **)(a1 + 12432);
}
if ( result )
result = cocos2d::CCObject::release(result);
*(_QWORD *)(a1 + 12432) = a2;
*(_BYTE *)(a1 + 12616) = a2 != 0;
}
return result;
}