//
// GJEffectManager::setColorAction from 0x1002c9fe0 to 0x1002ca048 (104 bytes)
//
// 6 xrefs:
// > LevelSettingsObject::init @ 0x1000da0e4
// > LevelSettingsObject::init @ 0x1000da107
// > LevelSettingsObject::init @ 0x1000da12a
// > LevelSettingsObject::init @ 0x1000da151
// > LevelSettingsObject::init @ 0x1000da174
// > LevelSettingsObject::init @ 0x1000da197
//
// 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 12:28:09 +0000
//
char *__fastcall GJEffectManager::setColorAction(_QWORD *a1, __int64 a2, int a3)
{
int v3; // eax
__int64 v4; // r15
char *result; // rax
v3 = 0;
if ( a3 > 0 )
v3 = a3;
v4 = 1101;
if ( v3 < 1101 )
v4 = (unsigned int)v3;
*(_DWORD *)(a2 + 92) = v4;
cocos2d::CCDictionary::setObject_1(a1[41], a2, v4);
*(_QWORD *)(a1[80] + 8 * v4) = a2;
result = GJEffectManager::getColorSprite(a1, v4);
*(_QWORD *)(a2 + 144) = result;
*((_QWORD *)result + 42) = a2;
return result;
}