//
// SetupSFXPopup::valueDidChange from 0x140448cf0 to 0x140448df9 (265 bytes)
//
// 4 xrefs:
// > ??> @ 0x1405ef7d0
// > ??> @ 0x1406a287c
// > ??> @ 0x1406a28b4
// > ??> @ 0x1406da688
//
// 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)
{
__int64 v5; // rcx
cocos2d::CCArray *m_gameObjects; // rbx
unsigned int i; // edi
unsigned int *p_m_uID; // rax
SetupAudioTriggerPopup::valueDidChange(a1, a2, a3);
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v5);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
if ( m_gameObjects )
{
if ( cocos2d::CCArray::count(m_gameObjects) )
{
for ( i = 0; i < cocos2d::CCArray::count(m_gameObjects); ++i )
{
p_m_uID = &cocos2d::CCArray::objectAtIndex(m_gameObjects, i)[33].m_uID;
*((_QWORD *)p_m_uID + 2) = 0;
if ( *((_QWORD *)p_m_uID + 3) > 0xFu )
p_m_uID = *(unsigned int **)p_m_uID;
*(_BYTE *)p_m_uID = 0;
}
}
}
if ( a2 == 392 )
{
a1->m_sfxID = (int)a3;
SetupSFXPopup::createSFXWidget(a1);
}
else if ( a2 == 404 )
{
SetupSFXPopup::updateLength(a1);
}
}