//
// GJScaleControl::scaleFromValue from 0x6ebae8 to 0x6ebb16 (46 bytes)
//
// 5 xrefs:
// > GJScaleControl::ccTouchEnded @ 0x6ebb5a
// > GJScaleControl::ccTouchEnded @ 0x6ebb78
// > GJScaleControl::ccTouchBegan @ 0x6ebdaa
// > GJScaleControl::ccTouchBegan @ 0x6ebde8
// > GJScaleControl::ccTouchMoved @ 0x6ee2e0
//
// 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:57:32 +0000
//
int __fastcall GJScaleControl::scaleFromValue(GJScaleControl *this, const char *a2)
{
cocos2d::CCString *v2; // r0
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.02f",
a2,
(float)(*((float *)this + 105)
+ (float)(*(float *)&a2 * (float)(*((float *)this + 104) - *((float *)this + 105)))));
return cocos2d::CCString::floatValue(v2);
}