//
// cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled from 0x180009cc0 to 0x180009d2d (109 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800258f8
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049a68
//
// 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 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled(
cocos2d::extension::CCControlSaturationBrightnessPicker *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::CCControlSaturationBrightnessPicker *))(*(_QWORD *)this + 1064LL))(this);
v5 = *((_QWORD *)this + 63);
if ( v5 )
{
v6 = v5 + 320;
v7 = 128;
if ( a2 )
v7 = 255;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 40LL))(v6, v7);
}
}