//
// sub_1002487E0 from 0x1002487e0 to 0x100248868 (136 bytes)
//
// 4 xrefs:
// > RetryLevelLayer::keyDown @ 0x100248a10
// > RetryLevelLayer::keyBackClicked @ 0x100248a38
// > sub_100248A3C @ 0x100248a58
// > RetryLevelLayer::customSetup @ 0x100248360
//
// 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 11:01:27 +0000
//
void __fastcall sub_1002487E0(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v5; // [xsp+1Fh] [xbp-11h]
v2 = GameManager::sharedState(a1);
PlayLayer::onQuit(*(_QWORD *)(v2 + 544));
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1320LL))(a1, 0);
v3 = FMODAudioEngine::sharedEngine();
sub_100009900(__p, "quitSound_01.ogg");
FMODAudioEngine::playEffect(v3, (__int64)__p, 1.0, 0.0, 0.7);
if ( v5 < 0 )
operator delete(__p[0]);
}