//
// cocos2d::CCMenuItemSprite::setDisabledImage from 0xd659f4 to 0xd65ac4 (208 bytes)
//
// 8 xrefs:
// > ??> @ 0xee9a8
// > ??> @ 0x1416c08
// > ??> @ 0x141dcb8
// > ??> @ 0x1431518
// > ??> @ 0x1488168
// > ??> @ 0x14e1868
// > ??> @ 0x1525e38
// > ??> @ 0x1526338
//
// 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:53 +0000
//
__int64 __fastcall cocos2d::CCMenuItemSprite::setDisabledImage(cocos2d::CCMenuItemSprite *this, cocos2d::CCNode *a2)
{
void (__fastcall *v4)(cocos2d::CCNode *, float *); // x22
__int64 v5; // x1
__int64 v6; // x1
float v8; // [xsp+40h] [xbp+40h] BYREF
if ( *((cocos2d::CCNode **)this + 47) != a2 )
{
if ( a2 )
{
(*(void (__fastcall **)(cocos2d::CCMenuItemSprite *, cocos2d::CCNode *, _QWORD, __int64))(*(_QWORD *)this + 472LL))(
this,
a2,
0,
3);
v4 = *(void (__fastcall **)(cocos2d::CCNode *, float *))(*(_QWORD *)a2 + 296LL);
cocos2d::CCPoint::CCPoint(&v8, 0.0, 0.0);
v4(a2, &v8);
}
v5 = *((_QWORD *)this + 49);
if ( v5 )
(*(void (__fastcall **)(cocos2d::CCMenuItemSprite *, __int64, __int64))(*(_QWORD *)this + 552LL))(this, v5, 1);
v6 = *(_QWORD *)this;
*((_QWORD *)this + 49) = a2;
(*(void (__fastcall **)(cocos2d::CCMenuItemSprite *))(v6 + 1120))(this);
}
return _stack_chk_guard;
}