//
// GameToolbox::transformColor from 0x2ec9b8 to 0x2ec9f8 (64 bytes)
//
// 9 xrefs:
// > PlayLayer::updateVisibility @ 0x315766
// > PlayLayer::updateVisibility @ 0x3157c6
// > LevelEditorLayer::updateObjectColors @ 0x3677c0
// > LevelEditorLayer::updateVisibility @ 0x369598
// > GJBaseGameLayer::visitWithColorFlash @ 0x4799e2
// > GJBaseGameLayer::visitWithColorFlash @ 0x479ac8
// > GJBaseGameLayer::visitWithColorFlash @ 0x479aea
// > GJBaseGameLayer::preUpdateVisibility @ 0x4893c0
// > GJEffectManager::calculateLightBGColor @ 0x49aa7e
//
// 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
//
cocos2d::ccColor3B GameToolbox::transformColor(const cocos2d::ccColor3B *a1, cocos2d::ccHSVValue a2)
{
int v2; // r0
v2 = GameToolbox::transformColor(&a1->r, a2.h, a2.s, a2.v, 257);
return (cocos2d::ccColor3B)((unsigned __int8)v2 | (unsigned __int16)(BYTE1(v2) << 8) | (BYTE2(v2) << 16));
}