//
// cocos2d::CCMenuItemSprite::unselected from 0x18005de80 to 0x18005def8 (120 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800feb90
// > ??> @ 0x1800ff000
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd27c
//
// 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 11:21:49 +0000
//
void __fastcall cocos2d::CCMenuItemSprite::unselected(cocos2d::CCMenuItemSprite *this, __int64 a2)
{
bool v2; // zf
__int64 v4; // rcx
__int64 v5; // rcx
__int64 v6; // rcx
v2 = *((_QWORD *)this + 48) == 0;
*((_BYTE *)this + 344) = 0;
if ( !v2 || *((_QWORD *)this + 49) )
{
v4 = *((_QWORD *)this + 47);
if ( v4 )
{
LOBYTE(a2) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 336LL))(v4, a2);
v5 = *((_QWORD *)this + 48);
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, 0);
v6 = *((_QWORD *)this + 49);
if ( v6 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, 0);
}
}
}