//
// SetupSongTriggerPopup::onClose from 0xaea448 to 0xaea4c8 (128 bytes)
//
// 2 xrefs:
// > ??> @ 0x86c80
// > ??> @ 0x14acbe8
//
// 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 13:01:09 +0000
//
__int64 __fastcall SetupSongTriggerPopup::onClose(SetupSongTriggerPopup *this, cocos2d::CCObject *a2)
{
FMODAudioEngine *v4; // x0
__int64 isMusicPlaying; // x0
__int64 v6; // x0
FMODAudioEngine *v8; // x0
v4 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(this);
isMusicPlaying = FMODAudioEngine::isMusicPlaying(v4, 0);
if ( (_BYTE)isMusicPlaying )
{
v8 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying);
isMusicPlaying = FMODAudioEngine::stopAllMusic(v8, 1);
}
*(_BYTE *)(*(_QWORD *)(GameManager::sharedState((GameManager *)isMusicPlaying) + 552) + 14153LL) = 1;
v6 = *((_QWORD *)this + 130);
if ( *(_BYTE *)(v6 + 349) )
SetupTriggerPopup::updateValue(this, 392, (float)*(int *)(v6 + 344));
return SetupTriggerPopup::onClose(this, a2);
}