//
// GJScaleControl::scaleFromValue from 0xbcf594 to 0xbcf5c8 (52 bytes)
//
// 6 xrefs:
// > GJScaleControl::ccTouchEnded @ 0xbcf66c
// > GJScaleControl::ccTouchEnded @ 0xbcf698
// > GJScaleControl::ccTouchMoved @ 0xbcfb84
// > GJScaleControl::ccTouchBegan @ 0xbd02e4
// > GJScaleControl::ccTouchBegan @ 0xbd0374
// > ??> @ 0x72e98
//
// 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
//
__int64 __fastcall GJScaleControl::scaleFromValue(GJScaleControl *this, float a2)
{
cocos2d::CCString *v2; // x0
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.02f",
(const char *)this,
(float)(*((float *)this + 147)
+ (float)((float)(*((float *)this + 146) - *((float *)this + 147)) * a2)));
return cocos2d::CCString::floatValue(v2);
}