//
// SetupSFXPopup::valueDidChange from 0xb6da48 to 0xb6db54 (268 bytes)
//
// 2 xrefs:
// > ??> @ 0xc1738
// > ??> @ 0x14c8e70
//
// This function is hookable on this platform (idp: arm, 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 13:02:19 +0000
//
cocos2d::CCArray *__fastcall SetupSFXPopup::valueDidChange(cocos2d::CCDictionary **this, int a2, float a3)
{
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v7; // x20
unsigned int v8; // w19
bool v9; // cf
unsigned int v10; // w1
__int64 v11; // x0
SetupSFXPopup *v12; // x0
SetupAudioTriggerPopup::valueDidChange(this, a2, a3);
result = SetupTriggerPopup::getObjects((SetupTriggerPopup *)this);
v7 = result;
if ( result )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
if ( (_DWORD)result )
{
v8 = 0;
v9 = (unsigned int)cocos2d::CCArray::count(v7) == 0;
v10 = 0;
for ( result = v7; !v9; result = v7 )
{
v11 = cocos2d::CCArray::objectAtIndex(result, v10);
if ( (*(_BYTE *)(v11 + 1840) & 1) != 0 )
{
++v8;
**(_BYTE **)(v11 + 1856) = 0;
*(_QWORD *)(v11 + 1848) = 0;
}
else
{
*(_BYTE *)(v11 + 1841) = 0;
++v8;
*(_BYTE *)(v11 + 1840) = 0;
}
v9 = v8 >= (unsigned int)cocos2d::CCArray::count(v7);
v10 = v8;
}
}
}
switch ( a2 )
{
case 392:
v12 = (SetupSFXPopup *)this;
*((_DWORD *)this + 260) = (int)a3;
return (cocos2d::CCArray *)SetupSFXPopup::createSFXWidget(v12);
case 601:
v12 = (SetupSFXPopup *)this;
return (cocos2d::CCArray *)SetupSFXPopup::createSFXWidget(v12);
case 404:
return (cocos2d::CCArray *)SetupSFXPopup::updateLength(this);
}
return result;
}