//
// cocos2d::CCMenuItemSprite::unselected from 0x1000558ac to 0x10005592c (128 bytes)
//
// 2 xrefs:
// > CCMenuItemSpriteExtra::unselected @ 0x1002b067c
// > ??> @ 0x10093ef10
//
// 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
//
__int64 __fastcall cocos2d::CCMenuItemSprite::unselected(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
v1 = result;
*(_BYTE *)(result + 338) = 0;
if ( *(_QWORD *)(result + 384) || *(_QWORD *)(result + 392) )
{
result = *(_QWORD *)(result + 376);
if ( result )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 344LL))(result, 1);
v2 = *(_QWORD *)(v1 + 384);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, 0);
result = *(_QWORD *)(v1 + 392);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
}
}
return result;
}