//
// GameObject::setVisible from 0x76cc24 to 0x76cdb8 (404 bytes)
//
// 49 xrefs:
// > PlayerObject::setVisible @ 0x74dd00
// > EndPortalObject::setVisible @ 0x8b5478
// > ??> @ 0x71c80
// > ??> @ 0x14341e8
// > ??> @ 0x14349c8
// > ??> @ 0x14351d8
// > ??> @ 0x1443538
// > ??> @ 0x1443d48
// > ??> @ 0x1444558
// > ??> @ 0x1444d68
// > ??> @ 0x1445578
// > ??> @ 0x1445d88
// > ??> @ 0x1446598
// > ??> @ 0x1446da8
// > ??> @ 0x1447588
// > ??> @ 0x1447d98
// > ??> @ 0x14485a8
// > ??> @ 0x1448db8
// > ??> @ 0x14495c8
// > ??> @ 0x1449e18
// > ??> @ 0x144a628
// > ??> @ 0x144ae38
// > ??> @ 0x144b648
// > ??> @ 0x144be58
// > ??> @ 0x144c678
// > ??> @ 0x144ce88
// > ??> @ 0x144d698
// > ??> @ 0x144dea8
// > ??> @ 0x144e6b8
// > ??> @ 0x144eec8
// > ??> @ 0x144f6d8
// > ??> @ 0x144fee8
// > ??> @ 0x14506f8
// > ??> @ 0x1450f08
// > ??> @ 0x1451718
// > ??> @ 0x1451f28
// > ??> @ 0x1452738
// > ??> @ 0x1452f48
// > ??> @ 0x1453758
// > ??> @ 0x1453f68
// > ??> @ 0x1454778
// > ??> @ 0x1454f88
// > ??> @ 0x1455798
// > ??> @ 0x1455fa8
// > ??> @ 0x14567b8
// > ??> @ 0x1456fc8
// > ??> @ 0x14577d8
// > ??> @ 0x1457fe8
// > ??> @ 0x14587f8
//
// 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 12:53:11 +0000
//
__int64 __fastcall GameObject::setVisible(cocos2d::CCParticleSystem **this, unsigned __int8 a2)
{
unsigned int v2; // w20
__int64 v4; // x0
void (*v5)(void); // x2
__int64 result; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x0
v2 = a2;
if ( !*((_BYTE *)this + 808)
|| a2 == (*((unsigned __int8 (__fastcall **)(cocos2d::CCParticleSystem **))*this + 44))(this) )
{
cocos2d::CCSprite::setVisible((cocos2d::CCSprite *)this, v2);
v4 = (__int64)*(this + 94);
if ( !v4 )
goto LABEL_5;
v5 = *(void (**)(void))(*(_QWORD *)v4 + 344LL);
goto LABEL_4;
}
if ( v2 )
{
v9 = (__int64)*(this + 97);
if ( v9
|| ((*((void (__fastcall **)(cocos2d::CCParticleSystem **))*this + 175))(this), (v9 = (__int64)*(this + 97)) != 0) )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 344LL))(v9, 1);
if ( *((_DWORD *)this + 257) != 2065
|| !(*((unsigned __int8 (__fastcall **)(cocos2d::CCParticleSystem **))*this + 216))(this) )
{
cocos2d::CCParticleSystem::resetSystem(*(this + 97));
}
(*((void (__fastcall **)(cocos2d::CCParticleSystem **))*this + 177))(this);
}
cocos2d::CCSprite::setVisible((cocos2d::CCSprite *)this, 1);
v10 = (__int64)*(this + 94);
if ( v10 )
{
v5 = *(void (**)(void))(*(_QWORD *)v10 + 344LL);
goto LABEL_4;
}
}
else
{
(*((void (__fastcall **)(cocos2d::CCParticleSystem **))*this + 176))(this);
v7 = (__int64)*(this + 97);
if ( v7 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, 0);
cocos2d::CCParticleSystem::stopSystem(*(this + 97));
cocos2d::CCSprite::setVisible((cocos2d::CCSprite *)this, 0);
v11 = (__int64)*(this + 94);
if ( v11 )
{
v5 = *(void (**)(void))(*(_QWORD *)v11 + 344LL);
goto LABEL_4;
}
}
else
{
cocos2d::CCSprite::setVisible((cocos2d::CCSprite *)this, 0);
v8 = (__int64)*(this + 94);
if ( v8 )
{
v5 = *(void (**)(void))(*(_QWORD *)v8 + 344LL);
LABEL_4:
v5();
}
}
}
LABEL_5:
result = (__int64)*(this + 111);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, v2);
return result;
}