//
// SetupSFXPopup::valueDidChange from 0xa40158 to 0xa40234 (220 bytes)
//
// 2 xrefs:
// > ??> @ 0x92508
// > ??> @ 0x11dfc90
//
// 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
//
void SetupSFXPopup::valueDidChange(SetupSFXPopup *a1, int a2, float a3)
{
cocos2d::CCArray *Objects; // x0
cocos2d::CCArray *v7; // x20
unsigned int i; // w19
__int64 v9; // x0
SetupAudioTriggerPopup::valueDidChange(a1, a2, a3);
Objects = SetupTriggerPopup::getObjects(a1);
v7 = Objects;
if ( Objects && (unsigned int)cocos2d::CCArray::count(Objects) )
{
for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v7); ++i )
{
v9 = cocos2d::CCArray::objectAtIndex(v7, i);
sub_D174B8(v9 + 1824, 0, *(_QWORD *)(*(_QWORD *)(v9 + 1824) - 24LL), 0);
}
}
if ( a2 == 392 )
{
a1->m_sfxID = (int)a3;
SetupSFXPopup::createSFXWidget(a1);
}
else if ( a2 == 404 )
{
SetupSFXPopup::updateLength(a1);
}
}