//
// cocos2d::CCMenuItemSprite::updateImagesVisibility from 0x1003a9570 to 0x1003a9657 (231 bytes)
//
// 7 xrefs:
// > ??> @ 0x100aeffe8
// > ??> @ 0x100af5bb8
// > ??> @ 0x100b146b0
// > ??> @ 0x100b34af0
// > ??> @ 0x100b35000
// > ??> @ 0x100b72de0
// > ??> @ 0x100b7fc10
//
// 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::updateImagesVisibility(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdi
__int64 v4; // rdi
__int64 v5; // rdi
v3 = *(_QWORD *)(a1 + 384);
if ( !v3 && !*(_QWORD *)(a1 + 392) )
return result;
if ( *(_BYTE *)(a1 + 339) == 1 )
{
result = *(_QWORD *)(a1 + 376);
LABEL_12:
if ( result )
{
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 344LL))(result, 1);
v3 = *(_QWORD *)(a1 + 384);
}
if ( v3 )
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);
v5 = *(_QWORD *)(a1 + 392);
if ( v5 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);
return result;
}
result = *(_QWORD *)(a1 + 376);
if ( !*(_QWORD *)(a1 + 392) )
goto LABEL_12;
if ( result )
{
result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)result + 344LL))(*(_QWORD *)(a1 + 376), 0);
v3 = *(_QWORD *)(a1 + 384);
}
if ( v3 )
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);
v4 = *(_QWORD *)(a1 + 392);
if ( v4 )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 344LL))(v4, 1);
return result;
}