//
// cocos2d::extension::CCControlPotentiometer::setEnabled from 0x7ad180 to 0x7ad1a8 (40 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:04 +0000
//
int __fastcall cocos2d::extension::CCControlPotentiometer::setEnabled(
cocos2d::extension::CCControlPotentiometer *this,
int a2)
{
int result; // r0
int v5; // r1
cocos2d::extension::CCControl::setEnabled(this, a2);
result = *((_DWORD *)this + 89);
if ( result )
{
if ( a2 )
v5 = 255;
else
v5 = 128;
return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 456))(result, v5);
}
return result;
}