//
// RetryLevelLayer::onMenu from 0x1004f7f40 to 0x1004f7fb8 (120 bytes)
//
// 4 xrefs:
// > RetryLevelLayer::keyDown @ 0x1004f85f8
// > RetryLevelLayer::keyBackClicked @ 0x1004f8657
// > sub_1004F8660 @ 0x1004f867e
// > RetryLevelLayer::customSetup @ 0x1004f7a92
//
// 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:31:27 +0000
//
void __fastcall RetryLevelLayer::onMenu(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 v3; // rax
void *v4[4]; // [rsp+0h] [rbp-20h] BYREF
v2 = GameManager::sharedState();
PlayLayer::onQuit(*(_QWORD *)(v2 + 544), a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1320LL))(a1, 0);
v3 = FMODAudioEngine::sharedEngine();
strcpy((char *)v4, " quitSound_01.ogg");
FMODAudioEngine::playEffect(v3, (__int64)v4, (__m128)0x3F800000u, 0.0, 0.69999999);
if ( ((__int64)v4[0] & 1) != 0 )
operator delete(v4[2]);
}