//
// cocos2d::extension::CCControlSlider::valueForLocation from 0x1003a09b0 to 0x1003a0a16 (102 bytes)
//
// 0 xrefs:
//
// 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 __fastcall cocos2d::extension::CCControlSlider::valueForLocation(
cocos2d::extension::CCControlSlider *a1,
cocos2d::CCPoint a2)
{
float *v2; // rsi
return fmaxf(
*(float *)&a1[1].m_nLuaID,
fminf(
*(float *)&a1[1].m_nTag,
(float)((float)(*(float *)&a1[1].m_uID
- *((float *)&a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ 1))
* (float)(*v2
/ *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_unknown2 + 312LL))(*(_QWORD *)&a1[1].m_unknown2)))
+ *((float *)&a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ 1)));
}