//
// cocos2d::CCSprite::setVisible from 0x7f2116 to 0x7f2154 (62 bytes)
//
// 2 xrefs:
// > CCSpritePart::setVisible @ 0x3c7120
// > GameObject::setVisible @ 0x44bb2c
//
// 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:01:05 +0000
//
int __fastcall cocos2d::CCSprite::setVisible(cocos2d::CCSprite *this, bool a2)
{
int result; // r0
int v4; // r3
result = cocos2d::CCNode::setVisible((int)this, a2);
if ( *((_DWORD *)this + 73) && !*((_BYTE *)this + 297) )
{
v4 = *(_DWORD *)this;
*((_BYTE *)this + 297) = 1;
result = (*(int (__fastcall **)(cocos2d::CCSprite *, int))(v4 + 600))(this, 1);
if ( *((_BYTE *)this + 298) )
return (*(int (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)this + 616))(this, 1);
}
return result;
}