//
// cocos2d::CCMenuItemSprite::setDisabledImage from 0x1003a90f0 to 0x1003a9184 (148 bytes)
//
// 7 xrefs:
// > ??> @ 0x100aeffe0
// > ??> @ 0x100af5bb0
// > ??> @ 0x100b146a8
// > ??> @ 0x100b34ae8
// > ??> @ 0x100b34ff8
// > ??> @ 0x100b72dd8
// > ??> @ 0x100b7fc08
//
// This function is hookable on this platform (idp: pc, 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 12:29:23 +0000
//
__int64 __fastcall cocos2d::CCMenuItemSprite::setDisabledImage(_QWORD *a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rsi
_QWORD v5[5]; // [rsp-28h] [rbp-28h] BYREF
if ( a1[47] != a2 )
{
v5[0] = result;
if ( a2 )
{
(*(void (__fastcall **)(_QWORD *, __int64, _QWORD, __int64))(*a1 + 472LL))(a1, a2, 0, 3);
sub_100278250((float *)v5, 0.0, 0.0);
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a2 + 296LL))(a2, v5);
}
v4 = a1[49];
if ( v4 )
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 552LL))(a1, v4, 1);
a1[49] = a2;
return (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 1120LL))(a1);
}
return result;
}