//
// PlayLayer::switchToStartPosObject from 0x10008c090 to 0x10008c0f0 (96 bytes)
//
// 3 xrefs:
// > PauseLayer::onResume @ 0x1003c131e
// > UILayer::handleAction @ 0x1004c3a62
// > UILayer::handleAction @ 0x1004c48e8
//
// 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:20:06 +0000
//
__int64 __fastcall PlayLayer::switchToStartPosObject(_QWORD *a1, __int64 a2)
{
double v2; // xmm0_8
if ( a1[1554] == a2 )
{
v2 = (*(double (__fastcall **)(_QWORD *))(*a1 + 1608LL))(a1);
}
else
{
GJBaseGameLayer::setActiveStartPosObject(a1);
PlayLayer::resetLevelFromStart(a1);
(*(void (__fastcall **)(_QWORD *, double))(*a1 + 1192LL))(a1, 0.0);
v2 = 0.0;
GJBaseGameLayer::updateCamera(a1, 0.0);
PlayLayer::updateTestModeLabel((__int64)a1);
}
return PlayLayer::startMusic((__int64)a1, v2);
}