//
// GJEffectManager::colorForEffect from 0x8a431c to 0x8a4360 (68 bytes)
//
// 8 xrefs:
// > GameObject::getActiveColorForMode @ 0x64a744
// > LevelEditorLayer::updateObjectColors @ 0x65f91c
// > LevelEditorLayer::updateObjectColors @ 0x65faf8
// > LevelEditorLayer::updateObjectColors @ 0x65fc5c
// > LevelEditorLayer::updateVisibility @ 0x662fa8
// > LevelEditorLayer::updateVisibility @ 0x6634cc
// > LevelEditorLayer::updateVisibility @ 0x663620
// > ??> @ 0xa1598
//
// 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
//
// local variable allocation has failed, the output may be wrong!
cocos2d::ccColor3B GJEffectManager::colorForEffect(GJEffectManager *a1, cocos2d::ccColor3B a2, cocos2d::ccHSVValue a3)
{
unsigned __int64 v3; // x0
__int64 v5; // [xsp+18h] [xbp+18h] BYREF
v5 = *(_QWORD *)&a2.r;
v3 = GameToolbox::transformColor((unsigned __int8 *)&v5, *(unsigned __int64 *)&a3.h, *(__int64 *)&a3.v);
return (cocos2d::ccColor3B)((unsigned __int8)v3 | (unsigned __int16)(BYTE1(v3) << 8) | (BYTE2(v3) << 16));
}