//
// GameToolbox::getMultipliedHSV from 0x5812c0 to 0x581334 (116 bytes)
//
// 5 xrefs:
// > PlayLayer::applyCustomEnterEffect @ 0x5cda0c
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x8622ec
// > GJEffectManager::colorForPulseEffect @ 0x8bf84c
// > GJEffectManager::calculateInheritedColor @ 0x8c0d94
// > ??> @ 0x4d628
//
// 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::ccHSVValue GameToolbox::getMultipliedHSV(const cocos2d::ccHSVValue *a1, float a2)
{
bool absoluteSaturation; // w6
bool absoluteBrightness; // w5
float s; // s1
float v; // s3
float v6; // s2
float v7; // s4
float v8; // s0
cocos2d::ccHSVValue result; // 0:x0.16
absoluteSaturation = a1->absoluteSaturation;
absoluteBrightness = a1->absoluteBrightness;
s = a1->s;
v = a1->v;
v6 = a2 * a1->h;
if ( !absoluteSaturation )
{
v7 = (float)(1.0 - a2) + (float)(a2 * s);
if ( !a1->absoluteBrightness )
goto LABEL_3;
LABEL_6:
v8 = a2 * v;
goto LABEL_4;
}
v7 = a2 * s;
if ( a1->absoluteBrightness )
goto LABEL_6;
LABEL_3:
v8 = (float)(1.0 - a2) + (float)(a2 * v);
LABEL_4:
*(_QWORD *)&result.h = LODWORD(v6) | ((unsigned __int64)LODWORD(v7) << 32);
*(_QWORD *)&result.v = LODWORD(v8)
| ((unsigned __int64)absoluteSaturation << 32) & 0xFFFF00FFFFFFFFFFLL
| ((unsigned __int64)absoluteBrightness << 40);
return result;
}