//
// GJScaleControl::scaleFromValue from 0x100642c60 to 0x100642c9e (62 bytes)
//
// 1 xrefs:
// > GJScaleControl::ccTouchBegan @ 0x100642fc5
//
// This function is hookable on this platform (idp: pc, 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 12:34:43 +0000
//
float __fastcall GJScaleControl::scaleFromValue(__int64 a1, float a2)
{
float v2; // xmm1_4
__int64 v3; // rax
char savedregs; // [rsp+0h] [rbp+0h]
v2 = (float)((float)(*(float *)(a1 + 584) - *(float *)(a1 + 588)) * a2) + *(float *)(a1 + 588);
v3 = sub_10088E820("%.02f", savedregs);
return cocos2d::CCString::floatValue(v3, v2);
}