//
// modifyValue from 0x409120 to 0x40915e (62 bytes)
//
// 1 xrefs:
// > LevelSelectLayer::getColorValue @ 0x4092ca
//
// 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
//
__int64 __fastcall modifyValue(double a1)
{
double v1; // d7
if ( a1 <= 0.2 )
{
v1 = 0.0;
}
else if ( a1 >= 0.8 )
{
v1 = 1.0;
}
else
{
v1 = (a1 - 0.2) / 0.6;
}
return *(_QWORD *)&v1;
}