//
// SetupSongTriggerPopup::valueDidChange from 0x14045db60 to 0x14045dca8 (328 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405f6cd8
// > ??> @ 0x1406dacb8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
void SetupSongTriggerPopup::valueDidChange(SetupSongTriggerPopup *a1, int a2, float a3)
{
__int64 v5; // rdi
_BOOL8 v6; // r8
FMODAudioEngine *v7; // [rsp+68h] [rbp+20h]
SetupAudioTriggerPopup::valueDidChange(a1, a2, a3);
if ( a2 == 400 )
{
v5 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v7 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v5 = qword_1406C2E88;
}
if ( *(_QWORD *)(v5 + 552) )
FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v5 + 552));
sub_14005E0D0((_QWORD *)(v5 + 1064));
sub_14005E0D0((_QWORD *)(v5 + 1128));
sub_14005E0D0((_QWORD *)(v5 + 1192));
SetupTriggerPopup::goToPage(a1, 0, a3 != 0.0);
LOBYTE(v6) = 1;
a1->toggleGroup(a1, 2, v6);
if ( a3 != 0.0 )
{
if ( cocos2d::CCDictionary::objectForKey(a1->m_valueToggles, 399) )
a1->updateToggleItem(a1, 399, 0);
else
SetupTriggerPopup::updateValueControls(a1, 399, 0.0);
SetupTriggerPopup::valueChanged(a1, 399, 0.0);
}
}
else if ( a2 == 404 )
{
SetupSongTriggerPopup::updateLength(a1);
}
}