//
// RetryLevelLayer::onMenu from 0x1004f90b0 to 0x1004f9128 (120 bytes)
//
// 4 xrefs:
// > RetryLevelLayer::keyDown @ 0x1004f9768
// > RetryLevelLayer::keyBackClicked @ 0x1004f97c7
// > sub_1004F97D0 @ 0x1004f97ee
// > RetryLevelLayer::customSetup @ 0x1004f8a62
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall RetryLevelLayer::onMenu(RetryLevelLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // rax
FMODAudioEngine *v3; // rax
void *v4[4]; // [rsp+0h] [rbp-20h] BYREF
v2 = GameManager::sharedState();
PlayLayer::onQuit(v2->m_playLayer);
((void (__fastcall *)(RetryLevelLayer *, _QWORD))a1->exitLayer)(a1, 0);
v3 = FMODAudioEngine::sharedEngine();
strcpy((char *)v4, " quitSound_01.ogg");
FMODAudioEngine::playEffect((__int64)v3, (__int64)v4, (__m128)0x3F800000u, 0.0, 0.69999999);
if ( ((__int64)v4[0] & 1) != 0 )
operator delete(v4[2]);
}