//
// cocos2d::extension::CCControlSlider::sliderEnded from 0xa9eda8 to 0xa9ee7c (212 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControlSlider::ccTouchEnded @ 0xa9eebc
// > ??> @ 0x43fc8
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void cocos2d::extension::CCControlSlider::sliderEnded(cocos2d::extension::CCControlSlider *a1, cocos2d::CCPoint a2)
{
void (__fastcall *setValue)(cocos2d::extension::CCControlSlider *__hidden, float); // x22
const cocos2d::CCPoint *v4; // x0
float v5; // s0
cocos2d::CCPoint v6; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCPoint v7; // 0:s0.4,4:s1.4
if ( ((unsigned __int8 (__fastcall *)(cocos2d::extension::CCControlSlider *, long double, long double))a1->isSelected)(
a1,
*(long double *)&a2.x,
*(long double *)&a2.y) )
{
setValue = a1->setValue;
v4 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_uAutoReleaseCount + 192LL))(*(_QWORD *)&a1[1].m_uAutoReleaseCount);
cocos2d::CCPoint::CCPoint(&v6, v4);
v5 = cocos2d::extension::CCControlSlider::valueForLocation(a1, v7);
setValue(a1, v5);
}
(*(void (__fastcall **)(_QWORD, _UNKNOWN **))(**(_QWORD **)&a1[1].m_uAutoReleaseCount + 944LL))(
*(_QWORD *)&a1[1].m_uAutoReleaseCount,
&off_F16178);
a1->setSelected(a1, 0);
}