//
// CreateParticlePopup::onDynamicColor from 0xafc324 to 0xafc3f8 (212 bytes)
//
// 3 xrefs:
// > ??> @ 0x87fb8
// > CreateParticlePopup::init @ 0xb04368
// > ??> @ 0x1543908
//
// 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:18 +0000
//
__int64 __fastcall CreateParticlePopup::onDynamicColor(CreateParticlePopup *this, cocos2d::CCObject *a2)
{
int v3; // w0
__int64 v4; // x0
__int64 v5; // x0
cocos2d::CCArray *v7; // x0
unsigned int i; // w20
__int64 v9; // x21
__int64 v10; // x0
v3 = *((unsigned __int8 *)this + 1000) ^ 1;
*((_BYTE *)this + 1000) = v3;
if ( v3 && (v4 = *((_QWORD *)this + 89), *(_BYTE *)(v4 + 740)) )
{
*(_BYTE *)(v4 + 740) = 0;
v5 = *((_QWORD *)this + 85);
if ( v5 )
goto LABEL_4;
}
else
{
v5 = *((_QWORD *)this + 85);
if ( v5 )
{
LABEL_4:
*(_BYTE *)(v5 + 809) = *((_BYTE *)this + 1000);
goto LABEL_5;
}
}
v7 = *((cocos2d::CCArray **)this + 86);
if ( v7 )
{
for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v7); ++i )
{
v9 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), i);
v10 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 87), i);
*(_BYTE *)(v9 + 809) = *((_BYTE *)this + 1000);
if ( *((_BYTE *)this + 1000) && *(_BYTE *)(v10 + 740) )
*(_BYTE *)(v10 + 740) = 0;
v7 = *((cocos2d::CCArray **)this + 86);
}
}
LABEL_5:
CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 108), *(_BYTE *)(*((_QWORD *)this + 89) + 740LL));
return CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 107), *((_BYTE *)this + 1000));
}