//
// cocos2d::CCMenuItemSprite::setSelectedImage from 0x1000555b0 to 0x100055658 (168 bytes)
//
// 5 xrefs:
// > ??> @ 0x1008df098
// > ??> @ 0x1008e5e88
// > ??> @ 0x1008f4b88
// > ??> @ 0x10091b210
// > ??> @ 0x10093ef58
//
// 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::setSelectedImage(_QWORD *result, __int64 a2)
{
__int64 v2; // x29
__int64 v3; // x30
_QWORD *v5; // x19
__int64 v6; // x1
float v7; // [xsp+8h] [xbp-28h] BYREF
__int64 v8; // [xsp+20h] [xbp-10h]
__int64 v9; // [xsp+28h] [xbp-8h]
if ( result[47] != a2 )
{
v8 = v2;
v9 = v3;
v5 = result;
if ( a2 )
{
(*(void (__fastcall **)(_QWORD *, __int64, _QWORD, __int64))(*result + 472LL))(result, a2, 0, 2);
sub_1000262BC(&v7, 0.0, 0.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a2 + 296LL))(a2, &v7);
}
v6 = v5[48];
if ( v6 )
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*v5 + 552LL))(v5, v6, 1);
v5[48] = a2;
return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*v5 + 1120LL))(v5);
}
return result;
}