//
// CreateParticlePopup::onUniformColor from 0x665608 to 0x665690 (136 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:40 +0000
//
int __fastcall CreateParticlePopup::onUniformColor(CreateParticlePopup *this, cocos2d::CCObject *a2)
{
unsigned int v3; // r5
int v4; // r6
int v5; // r0
CreateParticlePopup::updateParticleValueForType(
(unsigned int)this,
(float)(*(unsigned __int8 *)(*((_DWORD *)this + 136) + 656) ^ 1u),
56,
nullptr);
if ( *(_BYTE *)(*((_DWORD *)this + 136) + 656) )
{
v3 = *((_DWORD *)this + 132);
if ( v3 )
{
*(_BYTE *)(v3 + 677) = 0;
}
else if ( *((_DWORD *)this + 133) )
{
v4 = *((_DWORD *)this + 132);
while ( v3 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 133)) )
{
v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 133), v3++);
*(_BYTE *)(v5 + 677) = v4;
}
}
*((_BYTE *)this + 704) = 0;
}
CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 157), *(unsigned __int8 *)(*((_DWORD *)this + 136) + 656));
return CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 156), *((unsigned __int8 *)this + 704));
}