//
// cocos2d::extension::CCControlSlider::setEnabled from 0xa9eeec to 0xa9ef38 (76 bytes)
//
// 2 xrefs:
// > ??> @ 0x58368
// > ??> @ 0x11f6e50
//
// 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::setEnabled(cocos2d::extension::CCControlSlider *a1, bool a2)
{
_BOOL4 v2; // w19
__int64 v4; // x0
__int64 v5; // x1
v2 = a2;
cocos2d::extension::CCControl::setEnabled(a1, a2);
v4 = *(_QWORD *)&a1[1].m_uAutoReleaseCount;
if ( v4 )
{
if ( v2 )
v5 = 255;
else
v5 = 128;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 896LL))(v4, v5);
}
}