//
// GJScaleControl::scaleFromValue from 0x695608 to 0x69563c (52 bytes)
//
// 6 xrefs:
// > GJScaleControl::ccTouchBegan @ 0x695710
// > GJScaleControl::ccTouchBegan @ 0x6957b8
// > GJScaleControl::ccTouchEnded @ 0x69585c
// > GJScaleControl::ccTouchEnded @ 0x6958a0
// > GJScaleControl::ccTouchMoved @ 0x695b04
// > ??> @ 0x52b78
//
// 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; // x0
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.02f",
(const char *)a1,
(float)(a1->m_lowerBound + (float)((float)(a1->m_upperBound - a1->m_lowerBound) * a2)));
return cocos2d::CCString::floatValue(v2);
}