//
// CreateParticlePopup::onDynamicColor from 0x663c24 to 0x663cc0 (156 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:55:39 +0000
//
int __fastcall CreateParticlePopup::onDynamicColor(CreateParticlePopup *this, cocos2d::CCObject *a2)
{
int v3; // r3
int v4; // r3
unsigned int v5; // r5
int v6; // r6
int v7; // r7
int v8; // r0
v3 = *((unsigned __int8 *)this + 704) ^ 1;
*((_BYTE *)this + 704) = v3;
if ( v3 )
{
v4 = *((_DWORD *)this + 136);
if ( *(_BYTE *)(v4 + 656) )
*(_BYTE *)(v4 + 656) = 0;
}
v5 = *((_DWORD *)this + 132);
if ( v5 )
{
*(_BYTE *)(v5 + 677) = *((_BYTE *)this + 704);
}
else if ( *((_DWORD *)this + 133) )
{
v6 = *((_DWORD *)this + 132);
while ( v5 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 133)) )
{
v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 133), v5);
v8 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 134), v5);
*(_BYTE *)(v7 + 677) = *((_BYTE *)this + 704);
if ( *((_BYTE *)this + 704) && *(_BYTE *)(v8 + 656) )
*(_BYTE *)(v8 + 656) = v6;
++v5;
}
}
CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 157), *(unsigned __int8 *)(*((_DWORD *)this + 136) + 656));
return CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 156), *((unsigned __int8 *)this + 704));
}