//
// SetupObjectTogglePopup::valueDidChange from 0x1405bfa60 to 0x1405bfad4 (116 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407f7a20
// > ??> @ 0x1408e03b8
// > ??> @ 0x1408e03c8
// > ??> @ 0x14092e094
//
// This function is hookable on this platform (idp: pc, 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 11:34:47 +0000
//
void __fastcall SetupObjectTogglePopup::valueDidChange(__int64 a1, int a2)
{
struct cocos2d::CCObject *v2; // rax
cocos2d::CCArray *v3; // rdi
unsigned int i; // ebx
struct cocos2d::CCObject *v5; // rax
if ( a2 == 56 )
{
v2 = *(struct cocos2d::CCObject **)(a1 + 680);
if ( v2 )
v3 = cocos2d::CCArray::createWithObject(v2);
else
v3 = *(cocos2d::CCArray **)(a1 + 688);
for ( i = 0; i < cocos2d::CCArray::count(v3); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(v3, i);
EffectGameObject::updateSpecialColor(v5);
}
}
}