//
// GameToolbox::transformColor from 0x581010 to 0x581070 (96 bytes)
//
// 10 xrefs:
// > PlayLayer::updateVisibility @ 0x5ce16c
// > PlayLayer::updateVisibility @ 0x5ce1e0
// > LevelEditorLayer::updateObjectColors @ 0x65f7b8
// > LevelEditorLayer::updateVisibility @ 0x662d00
// > GJBaseGameLayer::visitWithColorFlash @ 0x86ab10
// > GJBaseGameLayer::visitWithColorFlash @ 0x86ab4c
// > GJBaseGameLayer::visitWithColorFlash @ 0x86ab88
// > GJBaseGameLayer::preUpdateVisibility @ 0x881ed0
// > GJEffectManager::calculateLightBGColor @ 0x8bfaa0
// > ??> @ 0x589b0
//
// 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)
{
unsigned int v2; // s0
unsigned int v3; // s1
unsigned int v4; // s2
unsigned __int64 v5; // x0
v5 = GameToolbox::transformColor(&a1->r, v2 | ((unsigned __int64)v3 << 32), v4 | 0x10100000000LL);
return (cocos2d::ccColor3B)((unsigned __int8)v5 | (unsigned __int16)(BYTE1(v5) << 8) | (BYTE2(v5) << 16));
}