//
// cocos2d::CCMenuItemSprite::unselected from 0x1003a94d0 to 0x1003a954c (124 bytes)
//
// 4 xrefs:
// > CCMenuItemSpriteExtra::unselected @ 0x1002637b7
// > ??> @ 0x100b14650
// > ??> @ 0x100b34a90
// > ??> @ 0x100b34fa0
//
// 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::unselected(__int64 a1)
{
__int64 v2; // rdi
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // rdi
*(_BYTE *)(a1 + 338) = 0;
if ( *(_QWORD *)(a1 + 384) || *(_QWORD *)(a1 + 392) )
{
v2 = *(_QWORD *)(a1 + 376);
if ( v2 )
{
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 344LL))(v2, 1);
v4 = *(_QWORD *)(a1 + 384);
if ( v4 )
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, 0);
v5 = *(_QWORD *)(a1 + 392);
if ( v5 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);
}
}
return result;
}