//
// RetryLevelLayer::onMenu from 0x547588 to 0x5475fe (118 bytes)
//
// 2 xrefs:
// > RetryLevelLayer::keyDown @ 0x547640
// > RetryLevelLayer::keyBackClicked @ 0x547660
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:24 +0000
//
int __fastcall RetryLevelLayer::onMenu(RetryLevelLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
FMODAudioEngine *v4; // r0
FMODAudioEngine *v5; // r6
int v7[3]; // [sp+8h] [bp-10h] BYREF
v3 = GameManager::sharedState(this);
PlayLayer::onQuit(*(GJGameLevel ***)(v3 + 404));
v4 = (FMODAudioEngine *)(*(int (__fastcall **)(RetryLevelLayer *, _DWORD))(*(_DWORD *)this + 660))(this, 0);
memset(v7, 0, sizeof(v7));
v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v4);
std::string::__init(v7, "quitSound_01.ogg", 0x10u);
FMODAudioEngine::playEffect(v5, (int)v7, 1065353216, 0, 1060320051);
return std::string::~string((int)v7);
}