//
// GameToolbox::getMultipliedHSV from 0x100044f84 to 0x100044ff0 (108 bytes)
//
// 4 xrefs:
// > GJEffectManager::calculateInheritedColor @ 0x10000f8e8
// > GJEffectManager::colorForPulseEffect @ 0x10000fadc
// > PlayLayer::applyCustomEnterEffect @ 0x10011d310
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f5dec
//
// 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 __fastcall GameToolbox::getMultipliedHSV(const cocos2d::ccHSVValue *a1, float a2)
{
float v; // w9
__int64 absoluteSaturation; // x10
__int64 absoluteBrightness; // x11
__int64 v5; // x12
float s; // s3
float v7; // s4
float v8; // s3
float v9; // s2
cocos2d::ccHSVValue result; // 0:x0.16
v = a1->v;
absoluteSaturation = a1->absoluteSaturation;
absoluteBrightness = a1->absoluteBrightness;
v5 = *(unsigned __int16 *)a1->__pad;
s = a1->s;
v7 = (float)(1.0 - a2) + (float)(s * a2);
v8 = s * a2;
if ( (absoluteSaturation & 1) == 0 )
v8 = v7;
v9 = (float)(1.0 - a2) + (float)(v * a2);
if ( (absoluteBrightness & 1) != 0 )
v9 = v * a2;
*(_QWORD *)&result.h = COERCE_UNSIGNED_INT(a1->h * a2) | ((unsigned __int64)LODWORD(v8) << 32);
*(_QWORD *)&result.v = (absoluteSaturation << 32) | (absoluteBrightness << 40) | (v5 << 48) | LODWORD(v9);
return result;
}