//
// modifyValue from 0x511870 to 0x5118ae (62 bytes)
//
// 1 xrefs:
// > LevelSelectLayer::getColorValue @ 0x511a1a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:32 +0000
//
__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;
}