//
// cocos2d::extension::CCControlSlider::setEnabled from 0x5a4088 to 0x5a40b0 (40 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
//
void cocos2d::extension::CCControlSlider::setEnabled(cocos2d::extension::CCControlSlider *a1, bool a2)
{
_BOOL4 v3; // r4
unsigned int m_uAutoReleaseCount; // r0
int v5; // r1
v3 = a2;
cocos2d::extension::CCControl::setEnabled(a1, a2);
m_uAutoReleaseCount = a1[1].m_uAutoReleaseCount;
if ( m_uAutoReleaseCount )
{
if ( v3 )
v5 = 255;
else
v5 = 128;
(*(void (__fastcall **)(unsigned int, int))(*(_DWORD *)m_uAutoReleaseCount + 448))(m_uAutoReleaseCount, v5);
}
}