//
// SetupObjectTogglePopup::valueDidChange from 0xa41eb0 to 0xa41f24 (116 bytes)
//
// 2 xrefs:
// > ??> @ 0x41c80
// > ??> @ 0x1489770
//
// 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 12:59:57 +0000
//
cocos2d::CCArray *__fastcall SetupObjectTogglePopup::valueDidChange(cocos2d::CCArray *this, int a2, float a3)
{
cocos2d::CCObject *v3; // x1
cocos2d::CCArray *v4; // x0
cocos2d::CCArray *v5; // x20
unsigned int v6; // w19
EffectGameObject *v7; // x0
bool v8; // cf
unsigned int v9; // w1
if ( a2 == 56 )
{
v3 = this;
v4 = *((cocos2d::CCArray **)this + 85);
if ( v4 )
v5 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v4, v3);
else
v5 = *((cocos2d::CCArray **)v3 + 86);
v6 = 0;
while ( 1 )
{
v8 = v6 >= (unsigned int)cocos2d::CCArray::count(v5);
v9 = v6;
this = v5;
++v6;
if ( v8 )
break;
v7 = (EffectGameObject *)cocos2d::CCArray::objectAtIndex(v5, v9);
EffectGameObject::updateSpecialColor(v7);
}
}
return this;
}