//
// PlayLayer::switchToStartPosObject from 0x4121f6 to 0x41223c (70 bytes)
//
// 3 xrefs:
// > UILayer::handleAction @ 0x3fe808
// > UILayer::handleAction @ 0x3fe8fc
// > PauseLayer::onResume @ 0x48edc2
//
// 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:47:38 +0000
//
void __fastcall PlayLayer::switchToStartPosObject(PlayLayer *this, StartPosObject *a2)
{
if ( *((StartPosObject **)this + 2680) == a2 )
{
(*(void (__fastcall **)(PlayLayer *))(*(_DWORD *)this + 804))(this);
}
else
{
GJBaseGameLayer::setActiveStartPosObject(this, a2);
PlayLayer::resetLevelFromStart(this);
(*(void (__fastcall **)(PlayLayer *, _DWORD))(*(_DWORD *)this + 596))(this, 0);
GJBaseGameLayer::updateCamera(this, 0.0);
PlayLayer::updateTestModeLabel(this);
}
PlayLayer::startMusic((cocos2d::CCDictionary **)this);
}