//
// GameToolbox::getMultipliedHSV from 0x69d510 to 0x69d584 (116 bytes)
//
// 5 xrefs:
// > PlayLayer::applyCustomEnterEffect @ 0x6f58b4
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x9a5878
// > GJEffectManager::colorForPulseEffect @ 0xa199ac
// > GJEffectManager::calculateInheritedColor @ 0xa1b4a8
// > ??> @ 0x6c7f0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:50:41 +0000
//
unsigned __int64 __fastcall GameToolbox::getMultipliedHSV(__int64 a1, float a2)
{
float v2; // s1
float v3; // s4
v2 = *(float *)(a1 + 4);
if ( *(_BYTE *)(a1 + 12) )
v3 = a2 * v2;
else
v3 = (float)(1.0 - a2) + (float)(a2 * v2);
return COERCE_UNSIGNED_INT(a2 * *(float *)a1) | ((unsigned __int64)LODWORD(v3) << 32);
}