//
// EffectGameObject::updateSpecialColor from 0x3ea660 to 0x3ea6c8 (104 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::addSpecial @ 0x370bca
// > EditorUI::getCreateBtn @ 0x386446
// > SetupObjectTogglePopup::valueDidChange @ 0x4bb770
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EffectGameObject::updateSpecialColor(EffectGameObject *a1)
{
cocos2d::CCNode *v2; // r0
int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // r2
char v4; // r3
EffectGameObject *v5; // [sp+0h] [bp-Ch] BYREF
v5 = a1;
if ( a1->m_objectID == 1049 )
{
v2 = a1->getChildByTag(a1, 998);
if ( v2 )
{
getTag = v2->__vftable[1].getTag;
if ( a1->m_activateGroup )
{
LOWORD(v5) = -256;
v4 = 127;
}
else
{
LOWORD(v5) = 0x3FFF;
v4 = 63;
}
BYTE2(v5) = v4;
((void (__fastcall *)(cocos2d::CCNode *, EffectGameObject **, int (__fastcall *)(const cocos2d::CCObject *__hidden)))getTag)(
v2,
&v5,
getTag);
}
}
}