//
// cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled from 0xd0fbb8 to 0xd0fc04 (76 bytes)
//
// 2 xrefs:
// > ??> @ 0x54190
// > ??> @ 0x150bf60
//
// This function is hookable on this platform (idp: arm, 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 13:07:02 +0000
//
__int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled(
cocos2d::extension::CCControlSaturationBrightnessPicker *this,
unsigned __int8 a2)
{
int v2; // w19
__int64 result; // x0
__int64 v5; // x1
v2 = a2;
cocos2d::extension::CCControl::setEnabled(this, a2);
result = *((_QWORD *)this + 63);
if ( result )
{
if ( v2 )
v5 = 255;
else
v5 = 128;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 912LL))(result, v5);
}
return result;
}