//
// GJScaleControl::valueFromSkew from 0xbcf70c to 0xbcf748 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0xdc870
//
// 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 13:03:36 +0000
//
float __fastcall GJScaleControl::valueFromSkew(GJScaleControl *this, float a2)
{
float result; // s0
result = (float)(a2 - *((float *)this + 147)) / (float)(*((float *)this + 146) - *((float *)this + 147));
if ( result >= 1.0 )
return 1.0;
if ( result <= 0.0 )
return 0.0;
return result;
}