//
// cocos2d::extension::CCControlSlider::valueForLocation from 0x18000aae0 to 0x18000ab47 (103 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004bb04
//
// 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:15:37 +0000
//
float __fastcall cocos2d::extension::CCControlSlider::valueForLocation(__int64 a1, float *a2)
{
float result; // xmm0_4
result = fminf(
(float)((float)(*(float *)(a1 + 480) - *(float *)(a1 + 476))
* (float)(*a2
/ *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 512) + 320LL))(*(_QWORD *)(a1 + 512))))
+ *(float *)(a1 + 476),
*(float *)(a1 + 488));
if ( result <= *(float *)(a1 + 484) )
return *(float *)(a1 + 484);
return result;
}