//
// cocos2d::CCMenuItemSprite::setNormalImage from 0x1000554dc to 0x1000555a8 (204 bytes)
//
// 5 xrefs:
// > ??> @ 0x1008df088
// > ??> @ 0x1008e5e78
// > ??> @ 0x1008f4b78
// > ??> @ 0x10091b200
// > ??> @ 0x10093ef48
//
// 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 10:57:45 +0000
//
_QWORD *__fastcall cocos2d::CCMenuItemSprite::setNormalImage(_QWORD *result, __int64 a2)
{
__int64 v3; // x1
_QWORD *v4; // x19
__int64 v5; // x0
float v6; // [xsp+8h] [xbp-18h] BYREF
v3 = result[47];
if ( v3 != a2 )
{
v4 = result;
if ( a2 )
{
(*(void (__fastcall **)(_QWORD *, __int64, _QWORD, __int64))(*result + 472LL))(result, a2, 0, 1);
sub_1000262BC(&v6, 0.0, 0.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a2 + 296LL))(a2, &v6);
v3 = v4[47];
}
if ( v3 )
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*v4 + 552LL))(v4, v3, 1);
v4[47] = a2;
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2);
(*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 320LL))(v4, v5);
return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*v4 + 1120LL))(v4);
}
return result;
}