//
// SetupSongTriggerPopup::onClose from 0x1002c0ea0 to 0x1002c0f19 (121 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b0f7b8
//
// This function is hookable on this platform (idp: pc, 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:28:05 +0000
//
__int64 __fastcall SetupSongTriggerPopup::onClose(_QWORD *a1, __int64 a2, double a3)
{
__int64 v5; // rdi
__int64 v6; // rsi
__int64 v7; // rdx
__int64 v8; // rdx
__int64 v9; // rax
__int64 v10; // rax
v5 = FMODAudioEngine::sharedEngine(a3);
v6 = 0;
if ( (unsigned __int8)FMODAudioEngine::isMusicPlaying_1(v5, 0) )
{
v5 = FMODAudioEngine::sharedEngine(a3);
v6 = 1;
FMODAudioEngine::stopAllMusic(v5, 1);
}
GameManager::sharedState(v5, v6, v7);
*(_BYTE *)(*(_QWORD *)(v9 + 552) + 14153LL) = 1;
v10 = a1[130];
if ( *(_BYTE *)(v10 + 349) == 1 )
SetupTriggerPopup::updateValue(a1, 0x188u, (float)*(int *)(v10 + 344));
return SetupTriggerPopup::onClose((__int64)a1, a2, v8);
}