//
// cocos2d::extension::CCControlSlider::setEnabled from 0x18000a310 to 0x18000a37b (107 bytes)
//
// 3 xrefs:
// > ??> @ 0x180028490
// > ??> @ 0x180032408
// > ??> @ 0x18004ba50
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:15:37 +0000
//
void __fastcall cocos2d::extension::CCControlSlider::setEnabled(cocos2d::extension::CCControlSlider *this, char a2)
{
int v3; // eax
__int64 v5; // rcx
__int64 v6; // rcx
__int64 v7; // rdx
*((_BYTE *)this + 441) = a2;
v3 = 1;
if ( !a2 )
v3 = 4;
*((_DWORD *)this + 109) = v3;
(*(void (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 1080LL))(this);
v5 = *((_QWORD *)this + 62);
if ( v5 )
{
v6 = v5 + 320;
v7 = 128;
if ( a2 )
v7 = 255;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 40LL))(v6, v7);
}
}