//
// cocos2d::CCMenuItemSprite::selected from 0xd65c6c to 0xd65d1c (176 bytes)
//
// 5 xrefs:
// > CCMenuItemSpriteExtra::selected @ 0x691c18
// > ??> @ 0xe1028
// > ??> @ 0x141dc58
// > ??> @ 0x1525dd8
// > ??> @ 0x15262d8
//
// 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 13:07:53 +0000
//
__int64 __fastcall cocos2d::CCMenuItemSprite::selected(cocos2d::CCMenuItemSprite *this)
{
__int64 result; // x0
__int64 v3; // x1
cocos2d::CCMenuItem::selected((__int64)this);
result = *((_QWORD *)this + 48);
if ( result )
{
result = *((_QWORD *)this + 47);
if ( !result )
return result;
v3 = *((_QWORD *)this + 49);
if ( !v3 )
goto LABEL_5;
goto LABEL_4;
}
v3 = *((_QWORD *)this + 49);
if ( v3 )
{
result = *((_QWORD *)this + 47);
if ( result )
{
LABEL_4:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);
result = *((_QWORD *)this + 47);
if ( !*((_QWORD *)this + 48) )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 344LL))(result, 1);
LABEL_5:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 48) + 344LL))(*((_QWORD *)this + 48), 1);
}
}
return result;
}