//
// GJEffectManager::setColorAction from 0x5c31c0 to 0x5c31fc (60 bytes)
//
// 9 xrefs:
// > LevelSettingsObject::init @ 0x480d8c
// > LevelSettingsObject::init @ 0x480daa
// > LevelSettingsObject::init @ 0x480dca
// > LevelSettingsObject::init @ 0x480dec
// > LevelSettingsObject::init @ 0x480e0a
// > LevelSettingsObject::init @ 0x480e28
// > GJEffectManager::getColorAction @ 0x5c3228
// > GJEffectManager::setupFromString @ 0x5cecbe
// > GJEffectManager::loadFromState @ 0x5d2160
//
// 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:53:51 +0000
//
cocos2d::CCObject *__fastcall GJEffectManager::setColorAction(cocos2d::CCDictionary **this, ColorAction *a2, int a3)
{
int v3; // r4
cocos2d::CCObject *result; // r0
if ( a3 > 1100 )
v3 = 1101;
else
v3 = a3 & ~(a3 >> 31);
*((_DWORD *)a2 + 22) = v3;
cocos2d::CCDictionary::setObject(*(this + 67), a2, v3);
*((_DWORD *)*(this + 106) + v3) = a2;
result = GJEffectManager::getColorSprite((GJEffectManager *)this, v3);
*((_DWORD *)a2 + 34) = result;
*((_DWORD *)result + 71) = a2;
return result;
}