//
// cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled from 0x100253a20 to 0x100253a70 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x10090dc90
//
// 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 11:01:32 +0000
//
__int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled(__int64 a1, int a2)
{
__int64 result; // x0
__int64 v5; // x1
cocos2d::extension::CCControl::setEnabled(a1, a2);
result = *(_QWORD *)(a1 + 504);
if ( result )
{
if ( a2 )
v5 = 255;
else
v5 = 128;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 912LL))(result, v5);
}
return result;
}