//
// GJEffectManager::setColorAction from 0x140366100 to 0x14036617d (125 bytes)
//
// 3 xrefs:
// > GJEffectManager::setupFromString @ 0x14036e67a
// > GJEffectManager::loadFromState @ 0x14036ecd6
// > ??> @ 0x1409216d4
//
// This function is hookable on this platform (idp: pc, 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 11:30:54 +0000
//
char *__fastcall GJEffectManager::setColorAction(__int64 a1, __int64 a2, int a3)
{
int v3; // esi
char *result; // rax
v3 = a3;
if ( a3 < 0 )
v3 = 0;
if ( v3 > 1101 )
v3 = 1101;
*(_DWORD *)(a2 + 92) = v3;
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 328), (struct cocos2d::CCObject *)a2, v3);
*(_QWORD *)(*(_QWORD *)(a1 + 736) + 8LL * v3) = a2;
result = GJEffectManager::getColorSprite(a1, v3);
*(_QWORD *)(a2 + 144) = result;
*((_QWORD *)result + 43) = a2;
return result;
}