//
// PlayLayer::switchToStartPosObject from 0x710fa4 to 0x711020 (124 bytes)
//
// 5 xrefs:
// > UILayer::handleAction @ 0x6f177c
// > UILayer::handleAction @ 0x6f1940
// > UILayer::handleAction @ 0x6f1ae8
// > PauseLayer::onResume @ 0x7d55f8
// > ??> @ 0x9d720
//
// 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:52:13 +0000
//
__int64 __fastcall PlayLayer::switchToStartPosObject(PlayLayer *this, StartPosObject *a2)
{
if ( *((StartPosObject **)this + 1554) == a2 )
{
(*(void (__fastcall **)(PlayLayer *))(*(_QWORD *)this + 1608LL))(this);
}
else
{
GJBaseGameLayer::setActiveStartPosObject(this, a2);
PlayLayer::resetLevelFromStart(this);
(*(void (__fastcall **)(PlayLayer *, float))(*(_QWORD *)this + 1192LL))(this, 0.0);
GJBaseGameLayer::updateCamera(this, 0.0);
PlayLayer::updateTestModeLabel(this);
}
return PlayLayer::startMusic((__int64)this);
}