//
// GJEffectManager::colorForEffect from 0x9f9dec to 0x9f9e30 (68 bytes)
//
// 8 xrefs:
// > GameObject::getActiveColorForMode @ 0x771b30
// > LevelEditorLayer::updateObjectColors @ 0x78bf30
// > LevelEditorLayer::updateObjectColors @ 0x78c10c
// > LevelEditorLayer::updateObjectColors @ 0x78c270
// > LevelEditorLayer::updateVisibility @ 0x78e5ac
// > LevelEditorLayer::updateVisibility @ 0x78eb0c
// > LevelEditorLayer::updateVisibility @ 0x78ec34
// > ??> @ 0xd4338
//
// This function is hookable on this platform (idp: arm, 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:59:15 +0000
//
unsigned __int64 __fastcall GJEffectManager::colorForEffect(__int64 a1, __int64 a2, unsigned __int64 a3, __int64 a4)
{
unsigned __int64 v4; // x0
__int64 v6; // [xsp+18h] [xbp+18h] BYREF
v6 = a2;
v4 = GameToolbox::transformColor((unsigned __int8 *)&v6, a3, a4);
return (unsigned __int8)v4
| (unsigned __int64)(unsigned __int16)(BYTE1(v4) << 8)
| ((unsigned __int64)BYTE2(v4) << 16);
}