//
// cocos2d::CCMenuItemSprite::updateImagesVisibility from 0x7dcf18 to 0x7dcf94 (124 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:46 +0000
//
_DWORD *__fastcall cocos2d::CCMenuItemSprite::updateImagesVisibility(_DWORD *this)
{
_DWORD *v1; // r4
int v2; // r0
int v3; // r0
int (*v4)(void); // r3
int v5; // r0
v1 = this;
if ( *(this + 76) || *(this + 77) )
{
v2 = *(this + 75);
if ( *((_BYTE *)v1 + 279) || !v1[77] )
{
if ( v2 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v2 + 172))(v2, 1);
v5 = v1[76];
if ( v5 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 172))(v5, 0);
this = (_DWORD *)v1[77];
if ( this )
{
v4 = *(int (**)(void))(*this + 172);
return (_DWORD *)v4();
}
}
else
{
if ( v2 )
(*(void (__fastcall **)(int))(*(_DWORD *)v2 + 172))(v2);
v3 = v1[76];
if ( v3 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v3 + 172))(v3, 0);
this = (_DWORD *)v1[77];
if ( this )
{
v4 = *(int (**)(void))(*this + 172);
return (_DWORD *)v4();
}
}
}
return this;
}