//
// RetryLevelLayer::onMenu from 0x1001b3a3c to 0x1001b3ac4 (136 bytes)
//
// 4 xrefs:
// > RetryLevelLayer::keyDown @ 0x1001b3c6c
// > RetryLevelLayer::keyBackClicked @ 0x1001b3c94
// > sub_1001B3C98 @ 0x1001b3cb4
// > RetryLevelLayer::customSetup @ 0x1001b3428
//
// 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 *v3; // x0
FMODAudioEngine *v4; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
v3 = GameManager::sharedState();
PlayLayer::onQuit(v3->m_playLayer);
((void (__fastcall *)(RetryLevelLayer *, _QWORD))a1->exitLayer)(a1, 0);
v4 = FMODAudioEngine::sharedEngine();
sub_100009900(__p, "quitSound_01.ogg");
FMODAudioEngine::playEffect((__int64)v4, (__int64)__p, 1.0, 0.0, 0.7);
if ( v6 < 0 )
operator delete(__p[0]);
}