//
// SetupAudioTriggerPopup::valueDidChange from 0x1405dbae0 to 0x1405dbc5b (379 bytes)
//
// 5 xrefs:
// > SetupSFXPopup::valueDidChange @ 0x1405de53c
// > SetupSongTriggerPopup::valueDidChange @ 0x1405f396c
// > ??> @ 0x1407ff008
// > ??> @ 0x1407ff4c0
// > ??> @ 0x14092ec58
//
// 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:34:59 +0000
//
void __fastcall SetupAudioTriggerPopup::valueDidChange(cocos2d::CCDictionary **a1, int a2, __int64 a3)
{
float v3; // xmm2_4
if ( a2 != 138 && a2 != 200 )
{
if ( a2 != 428 )
return;
if ( v3 == 0.0 )
a3 = 0;
else
LOBYTE(a3) = 1;
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, __int64))*a1 + 136))(a1, 428, a3);
if ( v3 != 0.0 )
{
if ( cocos2d::CCDictionary::objectForKey(a1[94], 138) )
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*a1 + 144))(a1, 138, 0);
else
SetupTriggerPopup::updateValueControls(a1, 138);
SetupTriggerPopup::valueChanged(a1, 138);
if ( cocos2d::CCDictionary::objectForKey(a1[94], 200) )
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*a1 + 144))(a1, 200, 0);
else
SetupTriggerPopup::updateValueControls(a1, 200);
SetupTriggerPopup::valueChanged(a1, 200);
}
goto LABEL_23;
}
if ( v3 != 0.0 )
{
if ( cocos2d::CCDictionary::objectForKey(a1[94], 428) )
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*a1 + 144))(a1, 428, 0);
else
SetupTriggerPopup::updateValueControls(a1, 428);
SetupTriggerPopup::valueChanged(a1, 428);
}
if ( a2 == 138 || a2 == 200 || a2 == 428 )
LABEL_23:
SetupAudioTriggerPopup::updateSpecialGroup((__int64)a1);
}