//
// cocos2d::CCMenuItemSprite::setDisabledImage from 0x1003bfcf0 to 0x1003bfd84 (148 bytes)
//
// 6 xrefs:
// > ??> @ 0x1008b1f00
// > ??> @ 0x1008ef6d0
// > ??> @ 0x10090cca8
// > ??> @ 0x10092c2e0
// > ??> @ 0x10092c7e0
// > ??> @ 0x100965848
//
// 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::CCMenuItemSprite::setDisabledImage(cocos2d::CCMenuItemSprite *a1, cocos2d::CCNode *a2)
{
__int64 v2; // rax
cocos2d::CCNode *m_pDisabledImage; // rsi
_QWORD v5[5]; // [rsp-28h] [rbp-28h] BYREF
if ( a1->m_pNormalImage != a2 )
{
v5[0] = v2;
if ( a2 )
{
((void (__fastcall *)(cocos2d::CCMenuItemSprite *, cocos2d::CCNode *, _QWORD, __int64))a1->addChild_1)(
a1,
a2,
0,
3);
sub_10028CBE0((float *)v5, 0.0, 0.0);
((void (__fastcall *)(cocos2d::CCNode *, _QWORD *))a2->setAnchorPoint)(a2, v5);
}
m_pDisabledImage = a1->m_pDisabledImage;
if ( m_pDisabledImage )
((void (__fastcall *)(cocos2d::CCMenuItemSprite *, cocos2d::CCNode *, __int64))a1->removeChild_0)(
a1,
m_pDisabledImage,
1);
a1->m_pDisabledImage = a2;
((void (__fastcall *)(cocos2d::CCMenuItemSprite *))a1->updateImagesVisibility)(a1);
}
}