//
// cocos2d::extension::CCControlSlider::sliderEnded from 0x5a3fcc to 0x5a403c (112 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControlSlider::ccTouchEnded @ 0x5a4062
//
// 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
//
void cocos2d::extension::CCControlSlider::sliderEnded(cocos2d::extension::CCControlSlider *a1, cocos2d::CCPoint a2)
{
void (__fastcall *setValue)(cocos2d::extension::CCControlSlider *__hidden, float); // r7
const cocos2d::CCPoint *v4; // r0
cocos2d::CCPoint v5; // r1
float v6; // r0
cocos2d::CCPoint v7; // [sp+4h] [bp-10h] BYREF
if ( ((int (__fastcall *)(cocos2d::extension::CCControlSlider *, _DWORD, _DWORD))a1->isSelected)(
a1,
LODWORD(a2.x),
LODWORD(a2.y)) )
{
setValue = a1->setValue;
v4 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(unsigned int))(*(_DWORD *)a1[1].m_uAutoReleaseCount + 96))(a1[1].m_uAutoReleaseCount);
cocos2d::CCPoint::CCPoint(&v7, v4);
LODWORD(v5.x) = &v7;
v6 = cocos2d::extension::CCControlSlider::valueForLocation(a1, v5);
((void (__fastcall *)(cocos2d::extension::CCControlSlider *, _DWORD))setValue)(a1, LODWORD(v6));
}
(*(void (__fastcall **)(unsigned int, void *))(*(_DWORD *)a1[1].m_uAutoReleaseCount + 472))(
a1[1].m_uAutoReleaseCount,
&unk_9AE05F);
a1->setSelected(a1, 0);
}