//
// GJBaseGameLayer::setActiveStartPosObject from 0x58e9ac to 0x58e9e2 (54 bytes)
//
// 6 xrefs:
// > PlayLayer::togglePracticeMode @ 0x4079d2
// > PlayLayer::switchToStartPosObject @ 0x41220e
// > LevelEditorLayer::onStopPlaytest @ 0x4629d4
// > LevelEditorLayer::onPlaytest @ 0x46832e
// > LevelEditorLayer::onPlaytest @ 0x46834a
// > GJBaseGameLayer::processStartPosObjects @ 0x58ed34
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:04 +0000
//
StartPosObject **__fastcall GJBaseGameLayer::setActiveStartPosObject(StartPosObject **this, StartPosObject *a2)
{
StartPosObject **v2; // r5
v2 = this;
if ( *(this + 2680) != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
this = (StartPosObject **)v2[2680];
if ( this )
this = (StartPosObject **)cocos2d::CCObject::release((cocos2d::CCObject *)this);
v2[2680] = a2;
*((_BYTE *)v2 + 10836) = a2 != nullptr;
}
return this;
}