//
// GJBaseGameLayer::setActiveStartPosObject from 0x99d5a8 to 0x99d600 (88 bytes)
//
// 7 xrefs:
// > PlayLayer::togglePracticeMode @ 0x7034cc
// > PlayLayer::switchToStartPosObject @ 0x710fc0
// > LevelEditorLayer::onStopPlaytest @ 0x78de38
// > LevelEditorLayer::onPlaytest @ 0x796464
// > LevelEditorLayer::onPlaytest @ 0x796518
// > GJBaseGameLayer::processStartPosObjects @ 0x99db08
// > ??> @ 0x7ab30
//
// 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:05 +0000
//
cocos2d::CCObject *__fastcall GJBaseGameLayer::setActiveStartPosObject(GJBaseGameLayer *this, StartPosObject *a2)
{
cocos2d::CCObject *result; // x0
result = *((cocos2d::CCObject **)this + 1554);
if ( result != a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
result = *((cocos2d::CCObject **)this + 1554);
}
if ( result )
cocos2d::CCObject::release(result);
*((_QWORD *)this + 1554) = a2;
*((_BYTE *)this + 12616) = a2 != nullptr;
return (GJBaseGameLayer *)((char *)this + 12288);
}
return result;
}