//
// SetupSFXPopup::valueDidChange from 0x6b16dc to 0x6b177c (160 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:39 +0000
//
float __fastcall SetupSFXPopup::valueDidChange(cocos2d::CCDictionary **this, int a2, float a3)
{
float result; // r0
cocos2d::CCArray *v7; // r7
unsigned int i; // r5
int v9; // r0
SetupAudioTriggerPopup::valueDidChange(this, a2, a3);
result = COERCE_FLOAT(SetupTriggerPopup::getObjects((SetupTriggerPopup *)this));
v7 = (cocos2d::CCArray *)LODWORD(result);
if ( result != 0.0 )
{
result = COERCE_FLOAT(cocos2d::CCArray::count((cocos2d::CCArray *)LODWORD(result)));
if ( result != 0.0 )
{
for ( i = 0; ; ++i )
{
result = COERCE_FLOAT(cocos2d::CCArray::count(v7));
if ( i >= LODWORD(result) )
break;
v9 = cocos2d::CCArray::objectAtIndex(v7, i);
if ( (*(_BYTE *)(v9 + 1648) & 1) != 0 )
{
**(_BYTE **)(v9 + 1656) = 0;
*(_DWORD *)(v9 + 1652) = 0;
}
else
{
*(_BYTE *)(v9 + 1649) = 0;
*(_BYTE *)(v9 + 1648) = 0;
}
}
}
}
switch ( a2 )
{
case 392:
*(this + 181) = (cocos2d::CCDictionary *)(int)a3;
return SetupSFXPopup::createSFXWidget((SetupSFXPopup *)this);
case 601:
return SetupSFXPopup::createSFXWidget((SetupSFXPopup *)this);
case 404:
return COERCE_FLOAT(SetupSFXPopup::updateLength(this));
}
return result;
}