//
// RetryLevelLayer::onMenu from 0x918620 to 0x9186e8 (200 bytes)
//
// 5 xrefs:
// > RetryLevelLayer::keyDown @ 0x918728
// > RetryLevelLayer::keyBackClicked @ 0x91874c
// > ??> @ 0xbf1d0
// > RetryLevelLayer::customSetup @ 0x9193ac
// > ??> @ 0x1545920
//
// 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 12:57:20 +0000
//
__int64 __fastcall RetryLevelLayer::onMenu(RetryLevelLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
FMODAudioEngine *v4; // x0
__int64 v5; // x0
void *v7[3]; // [xsp+20h] [xbp+20h] BYREF
v3 = GameManager::sharedState(_stack_chk_guard);
PlayLayer::onQuit(*(GJGameLevel ***)(v3 + 544));
v4 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(RetryLevelLayer *, _QWORD))(*(_QWORD *)this + 1320LL))(this, 0);
v5 = FMODAudioEngine::sharedEngine(v4);
BYTE1(v7[2]) = 0;
WORD1(v7[2]) = 0;
HIDWORD(v7[2]) = 0;
strcpy((char *)v7, " quitSound_01.og");
FMODAudioEngine::playEffect(v5, (char *)v7, 1.0, 0.0, 0.7);
if ( ((__int64)v7[0] & 1) != 0 )
operator delete(v7[2]);
return _stack_chk_guard;
}