//
// CreateParticlePopup::onUniformColor from 0xafe92c to 0xafe9d4 (168 bytes)
//
// 3 xrefs:
// > ??> @ 0xa6528
// > CreateParticlePopup::init @ 0xb04454
// > ??> @ 0x1544a90
//
// 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 13:01:19 +0000
//
__int64 __fastcall CreateParticlePopup::onUniformColor(
CreateParticlePopup *this,
cocos2d::CCObject *a2,
long double a3)
{
__int64 v4; // x2
unsigned __int8 v5; // w1
__int64 v6; // x0
cocos2d::CCArray *v8; // x0
unsigned int v9; // w20
bool v10; // cf
unsigned int v11; // w1
*(float *)&a3 = (float)(*(unsigned __int8 *)(*((_QWORD *)this + 89) + 740LL) ^ 1u);
CreateParticlePopup::updateParticleValueForType((__int64)this, 0x38u, nullptr, a3);
v4 = *((_QWORD *)this + 89);
v5 = *(_BYTE *)(v4 + 740);
if ( v5 )
{
v6 = *((_QWORD *)this + 85);
if ( v6 )
{
*(_BYTE *)(v6 + 809) = 0;
v4 = *((_QWORD *)this + 89);
}
else
{
v8 = *((cocos2d::CCArray **)this + 86);
if ( v8 )
{
v9 = 0;
while ( 1 )
{
v10 = v9 >= (unsigned int)cocos2d::CCArray::count(v8);
v11 = v9++;
if ( v10 )
break;
*(_BYTE *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v11) + 809) = 0;
v8 = *((cocos2d::CCArray **)this + 86);
}
v4 = *((_QWORD *)this + 89);
}
}
*((_BYTE *)this + 1000) = 0;
v5 = *(_BYTE *)(v4 + 740);
}
CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 108), v5);
return CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 107), *((_BYTE *)this + 1000));
}