//
// SetupSFXPopup::valueDidChange from 0x100180ef0 to 0x100180fd8 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007a4068
//
// 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 __fastcall SetupSFXPopup::valueDidChange(SetupSFXPopup *a1, int a2, float a3)
{
cocos2d::CCArray *Objects; // x0
cocos2d::CCArray *v7; // x21
__int64 v8; // x22
__int64 v9; // x0
SetupAudioTriggerPopup::valueDidChange(a1, a2, a3);
Objects = SetupTriggerPopup::getObjects(a1);
if ( Objects )
{
v7 = Objects;
if ( (unsigned int)sub_10024A36C(Objects) )
{
if ( (unsigned int)sub_10024A36C(v7) )
{
v8 = 0;
do
{
v9 = sub_10024A388(v7, v8);
if ( *(char *)(v9 + 1863) < 0 )
{
**(_BYTE **)(v9 + 1840) = 0;
*(_QWORD *)(v9 + 1848) = 0;
}
else
{
*(_BYTE *)(v9 + 1840) = 0;
*(_BYTE *)(v9 + 1863) = 0;
}
v8 = (unsigned int)(v8 + 1);
}
while ( (unsigned int)v8 < (unsigned int)sub_10024A36C(v7) );
}
}
}
if ( a2 == 404 )
{
SetupSFXPopup::updateLength(a1);
}
else if ( a2 == 392 )
{
a1->m_sfxID = (int)a3;
SetupSFXPopup::createSFXWidget(a1);
}
}