//
// GJScaleControl::scaleFromValue from 0x386b9c to 0x386bca (46 bytes)
//
// 5 xrefs:
// > GJScaleControl::ccTouchBegan @ 0x386c34
// > GJScaleControl::ccTouchBegan @ 0x386c72
// > GJScaleControl::ccTouchEnded @ 0x386d00
// > GJScaleControl::ccTouchEnded @ 0x386d1e
// > GJScaleControl::ccTouchMoved @ 0x386f2e
//
// 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
//
float GJScaleControl::scaleFromValue(GJScaleControl *a1, float a2)
{
cocos2d::CCString *v2; // r0
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.02f",
(const char *)LODWORD(a2),
(float)(a1->m_lowerBound + (float)(a2 * (float)(a1->m_upperBound - a1->m_lowerBound))));
return cocos2d::CCString::floatValue(v2);
}