//
// SetupObjectTogglePopup::valueDidChange from 0x5ea168 to 0x5ea1a0 (56 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:54:22 +0000
//
unsigned int __fastcall SetupObjectTogglePopup::valueDidChange(unsigned int this, int a2, float a3)
{
unsigned int v3; // r3
cocos2d::CCArray *v4; // r0
cocos2d::CCArray *v5; // r5
unsigned int i; // r4
_DWORD *v7; // r0
int v8; // r1
int v9; // r2
v3 = this;
if ( a2 == 56 )
{
v4 = *(cocos2d::CCArray **)(this + 528);
if ( v4 )
v5 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v4, (cocos2d::CCObject *)&dword_38);
else
v5 = *(cocos2d::CCArray **)(v3 + 532);
for ( i = 0; ; ++i )
{
this = cocos2d::CCArray::count(v5);
if ( i >= this )
break;
v7 = (_DWORD *)cocos2d::CCArray::objectAtIndex(v5, i);
EffectGameObject::updateSpecialColor(v7, v8, v9);
}
}
return this;
}