//
// GJBaseGameLayer::setActiveStartPosObject from 0x100100720 to 0x10010076d (77 bytes)
//
// 5 xrefs:
// > PlayLayer::switchToStartPosObject @ 0x10008c0a5
// > PlayLayer::togglePracticeMode @ 0x10008c6bb
// > LevelEditorLayer::onPlaytest @ 0x1000c5c8b
// > LevelEditorLayer::onPlaytest @ 0x1000c5df2
// > LevelEditorLayer::onStopPlaytest @ 0x1000c6d80
//
// 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 12:21:20 +0000
//
__int64 __fastcall GJBaseGameLayer::setActiveStartPosObject(__int64 a1, __int64 a2)
{
__int64 v3; // rdi
__int64 result; // rax
v3 = *(_QWORD *)(a1 + 12432);
if ( v3 != a2 )
{
if ( a2 )
{
result = cocos2d::CCObject::retain(a2);
v3 = *(_QWORD *)(a1 + 12432);
}
if ( v3 )
result = cocos2d::CCObject::release(v3);
*(_QWORD *)(a1 + 12432) = a2;
*(_BYTE *)(a1 + 12616) = a2 != 0;
}
return result;
}