//
// PauseLayer::onQuit from 0x48faec to 0x48fb60 (116 bytes)
//
// 2 xrefs:
// > PauseLayer::FLAlert_Clicked @ 0x48fb8c
// > PauseLayer::tryQuit @ 0x48fc58
//
// 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:49:36 +0000
//
int __fastcall PauseLayer::onQuit(PauseLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
int v4; // r0
FMODAudioEngine *v5; // r0
FMODAudioEngine *v6; // r6
int v8[3]; // [sp+8h] [bp-10h] BYREF
CCBlockLayer::decrementForcePrio(this);
v3 = (GameManager *)cocos2d::CCNode::unscheduleAllSelectors(this);
v4 = GameManager::sharedState(v3);
v5 = (FMODAudioEngine *)PlayLayer::onQuit(*(GJGameLevel ***)(v4 + 404));
memset(v8, 0, sizeof(v8));
v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v5);
std::string::__init(v8, "quitSound_01.ogg", 0x10u);
FMODAudioEngine::playEffect(v6, (int)v8, 1065353216, 0, 1060320051);
return std::string::~string((int)v8);
}