//
// cocos2d::CCMenuItemToggle::setEnabled from 0x7dd3b4 to 0x7dd406 (82 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:46 +0000
//
unsigned __int8 *__fastcall cocos2d::CCMenuItemToggle::setEnabled(unsigned __int8 *this, int a2)
{
unsigned __int8 *v2; // r4
int v4; // r3
_DWORD *v5; // r2
unsigned __int8 **v6; // r5
unsigned __int8 **v7; // r4
unsigned __int8 *v8; // t1
v2 = this;
if ( *(this + 279) != a2 )
{
cocos2d::CCMenuItem::setEnabled((int)this, a2);
this = *((unsigned __int8 **)v2 + 76);
if ( this )
{
this = (unsigned __int8 *)cocos2d::CCArray::count((cocos2d::CCArray *)this);
if ( this )
{
v4 = *((_DWORD *)v2 + 76);
if ( v4 )
{
v5 = *(_DWORD **)(v4 + 52);
if ( *v5 )
{
v6 = (unsigned __int8 **)v5[3];
v7 = &(&v6[*v5])[-1];
while ( v6 <= v7 )
{
v8 = *v6++;
this = v8;
if ( !v8 )
break;
this = (unsigned __int8 *)(*(int (__fastcall **)(unsigned __int8 *, int))(*(_DWORD *)this + 528))(
this,
a2);
}
}
}
}
}
}
return this;
}