//
// cocos2d::CCSprite::setVisible from 0xd8828c to 0xd88300 (116 bytes)
//
// 38 xrefs:
// > CCSpritePart::setVisible @ 0x69277c
// > GameObject::setVisible @ 0x76cc48
// > GameObject::setVisible @ 0x76ccb4
// > GameObject::setVisible @ 0x76cd2c
// > GameObject::setVisible @ 0x76cd64
// > ??> @ 0xd88c8
// > ??> @ 0x1413738
// > ??> @ 0x1413cf8
// > ??> @ 0x1414aa8
// > ??> @ 0x1417318
// > ??> @ 0x141b1d8
// > ??> @ 0x141b808
// > ??> @ 0x141cc88
// > ??> @ 0x14218b8
// > ??> @ 0x1421e68
// > ??> @ 0x1423828
// > ??> @ 0x1423dd8
// > ??> @ 0x14243a8
// > ??> @ 0x1428d88
// > ??> @ 0x1433bf8
// > ??> @ 0x143a168
// > ??> @ 0x145af18
// > ??> @ 0x145b4b8
// > ??> @ 0x14775a8
// > ??> @ 0x1479658
// > ??> @ 0x1486ab8
// > ??> @ 0x1487068
// > ??> @ 0x1491998
// > ??> @ 0x1496dd8
// > ??> @ 0x1499328
// > ??> @ 0x14c1c58
// > ??> @ 0x14d9658
// > ??> @ 0x150ca78
// > ??> @ 0x1517938
// > ??> @ 0x1517ed8
// > ??> @ 0x1518a58
// > ??> @ 0x152e4b8
// > ??> @ 0x152fcb8
//
// 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 13:08:14 +0000
//
__int64 __fastcall cocos2d::CCSprite::setVisible(cocos2d::CCSprite *this, char a2)
{
__int64 result; // x0
__int64 v4; // x2
cocos2d::CCNode::setVisible((__int64)this, a2);
result = *((_QWORD *)this + 46);
if ( result )
{
result = *((unsigned __int8 *)this + 377);
if ( !*((_BYTE *)this + 377) )
{
v4 = *(_QWORD *)this;
*((_BYTE *)this + 377) = 1;
(*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(v4 + 1200))(this, 1);
result = *((unsigned __int8 *)this + 378);
if ( *((_BYTE *)this + 378) )
return (*(__int64 (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)this + 1232LL))(this, 1);
}
}
return result;
}