//
// SetupSongTriggerPopup::onClose from 0x1002592e0 to 0x10025935c (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x10090f230
//
// 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 11:01:35 +0000
//
__int64 __fastcall SetupSongTriggerPopup::onClose(_QWORD *a1)
{
__int64 v2; // x0
__int64 isMusicPlaying_1; // x0
_QWORD *v4; // x0
__int64 v5; // x8
v2 = FMODAudioEngine::sharedEngine();
isMusicPlaying_1 = FMODAudioEngine::isMusicPlaying_1(v2, 0);
if ( (_DWORD)isMusicPlaying_1 )
{
v4 = (_QWORD *)FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v4, 1);
}
*(_BYTE *)(*(_QWORD *)(GameManager::sharedState(isMusicPlaying_1) + 552) + 14153LL) = 1;
v5 = a1[130];
if ( *(_BYTE *)(v5 + 349) == 1 )
sub_1001AFA70(a1, 392, (float)*(int *)(v5 + 344));
return SetupTriggerPopup::onClose((__int64)a1);
}