//
// GameToolbox::transformColor from 0x1004efa30 to 0x1004efa51 (33 bytes)
//
// 9 xrefs:
// > PlayLayer::updateVisibility @ 0x1000b70aa
// > PlayLayer::updateVisibility @ 0x1000b70ff
// > LevelEditorLayer::updateVisibility @ 0x1000eadba
// > LevelEditorLayer::updateObjectColors @ 0x1000eb85d
// > GJBaseGameLayer::preUpdateVisibility @ 0x10014f910
// > GJBaseGameLayer::visitWithColorFlash @ 0x100165004
// > GJBaseGameLayer::visitWithColorFlash @ 0x10016503c
// > GJBaseGameLayer::visitWithColorFlash @ 0x100165064
// > GJEffectManager::calculateLightBGColor @ 0x1002edbfa
//
// 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 __fastcall GameToolbox::transformColor(const cocos2d::ccColor3B *a1, float a2, float a3, float a4)
{
cocos2d::ccHSVValue v5; // 0:xmm0_8.8,8:rsi.8
*(_QWORD *)&v5.v = (unsigned int)_mm_cvtsi128_si32(*(__m128i *)&a4) | 0x10100000000LL;
*(_QWORD *)&v5.h = _mm_insert_ps(*(__m128 *)&a2, *(__m128 *)&a3, 16).u64[0];
return GameToolbox::transformColor_1(a1, v5);
}