//
// cocos2d::CCMenuItemSprite::updateImagesVisibility from 0x10005594c to 0x100055a30 (228 bytes)
//
// 5 xrefs:
// > ??> @ 0x1008df0b0
// > ??> @ 0x1008e5ea0
// > ??> @ 0x1008f4ba0
// > ??> @ 0x10091b228
// > ??> @ 0x10093ef70
//
// 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::updateImagesVisibility(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x8
__int64 (*v4)(void); // x2
result = *(_QWORD *)(a1 + 384);
if ( !result && !*(_QWORD *)(a1 + 392) )
return result;
if ( *(_BYTE *)(a1 + 339) == 1 )
{
v3 = *(_QWORD *)(a1 + 376);
goto LABEL_12;
}
v3 = *(_QWORD *)(a1 + 376);
if ( !*(_QWORD *)(a1 + 392) )
{
LABEL_12:
if ( v3 )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 344LL))(v3, 1);
result = *(_QWORD *)(a1 + 384);
}
if ( result )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
result = *(_QWORD *)(a1 + 392);
if ( result )
{
v4 = *(__int64 (**)(void))(*(_QWORD *)result + 344LL);
return v4();
}
return result;
}
if ( v3 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v3 + 344LL))(*(_QWORD *)(a1 + 376), 0);
result = *(_QWORD *)(a1 + 384);
}
if ( result )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
result = *(_QWORD *)(a1 + 392);
if ( result )
{
v4 = *(__int64 (**)(void))(*(_QWORD *)result + 344LL);
return v4();
}
return result;
}