//
// SetupSongTriggerPopup::valueDidChange from 0x1405f3950 to 0x1405f3a96 (326 bytes)
//
// 2 xrefs:
// > ??> @ 0x140806228
// > ??> @ 0x14092f390
//
// 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 11:35:06 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall SetupSongTriggerPopup::valueDidChange(cocos2d::CCDictionary **a1, int a2, __int64 a3)
{
float v3; // xmm2_4
_QWORD *v6; // rdi
__int64 v7; // rcx
__int64 v8; // r8
__int64 v9; // r8
void *v10; // [rsp+68h] [rbp+20h]
SetupAudioTriggerPopup::valueDidChange(a1, a2, a3);
if ( a2 == 400 )
{
v6 = (_QWORD *)qword_14090BF60;
if ( !qword_14090BF60 )
{
v10 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v6 = (_QWORD *)qword_14090BF60;
}
v7 = v6[69];
if ( v7 )
FMOD::ChannelControl::stop(v7);
sub_14003EB60(v6 + 137);
sub_14003EB60(v6 + 145);
sub_14003EB60(v6 + 153);
LOBYTE(v8) = v3 != 0.0;
SetupTriggerPopup::goToPage(a1, 0, v8);
LOBYTE(v9) = 1;
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, __int64))*a1 + 136))(a1, 2, v9);
if ( v3 != 0.0 )
{
if ( cocos2d::CCDictionary::objectForKey(a1[94], 399) )
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*a1 + 144))(a1, 399, 0);
else
SetupTriggerPopup::updateValueControls(a1, 399);
SetupTriggerPopup::valueChanged(a1, 399);
}
}
else if ( a2 == 404 )
{
SetupSongTriggerPopup::updateLength(a1);
}
}