//
// GameObject::setVisible from 0x1002f8e90 to 0x1002f8fdc (332 bytes)
//
// 48 xrefs:
// > PlayerObject::setVisible @ 0x1002cb518
// > EndPortalObject::setVisible @ 0x10047f610
// > ??> @ 0x1009284a0
// > ??> @ 0x100928c98
// > ??> @ 0x1009294b8
// > ??> @ 0x10094d478
// > ??> @ 0x10094dcc0
// > ??> @ 0x10094e4c8
// > ??> @ 0x10094ecd0
// > ??> @ 0x10094f4d8
// > ??> @ 0x10094fce0
// > ??> @ 0x1009504e8
// > ??> @ 0x100950cf0
// > ??> @ 0x1009514e8
// > ??> @ 0x100951d08
// > ??> @ 0x100952580
// > ??> @ 0x100952da0
// > ??> @ 0x1009535c0
// > ??> @ 0x100953de0
// > ??> @ 0x100954600
// > ??> @ 0x100954e20
// > ??> @ 0x100955640
// > ??> @ 0x100955e60
// > ??> @ 0x100956680
// > ??> @ 0x100956ea0
// > ??> @ 0x1009576d8
// > ??> @ 0x100957f40
// > ??> @ 0x100958778
// > ??> @ 0x100958fb0
// > ??> @ 0x1009597e8
// > ??> @ 0x10095a020
// > ??> @ 0x10095a840
// > ??> @ 0x10095b060
// > ??> @ 0x10095b880
// > ??> @ 0x10095c0a0
// > ??> @ 0x10095c8c0
// > ??> @ 0x10095d0e0
// > ??> @ 0x10095d900
// > ??> @ 0x10095e120
// > ??> @ 0x10095e940
// > ??> @ 0x10095f160
// > ??> @ 0x10095f980
// > ??> @ 0x1009601a0
// > ??> @ 0x1009609c0
// > ??> @ 0x1009611e0
// > ??> @ 0x100961a00
// > ??> @ 0x100962220
// > ??> @ 0x100962a40
//
// 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 11:03:01 +0000
//
__int64 __fastcall GameObject::setVisible(__int64 a1, __int64 a2)
{
__int64 v4; // x8
__int64 v5; // x0
__int64 v6; // x0
char v7; // w8
__int64 result; // x0
if ( *(_BYTE *)(a1 + 808) != 1 || (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1) == (_DWORD)a2 )
{
LABEL_15:
cocos2d::CCSprite::setVisible(a1);
v6 = *(_QWORD *)(a1 + 752);
if ( !v6 )
goto LABEL_21;
if ( (_DWORD)a2 )
goto LABEL_17;
LABEL_19:
v7 = 0;
goto LABEL_20;
}
if ( (_DWORD)a2 )
{
if ( *(_QWORD *)(a1 + 776) )
goto LABEL_8;
v4 = 1400;
}
else
{
v4 = 1408;
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + v4))(a1);
LABEL_8:
v5 = *(_QWORD *)(a1 + 776);
if ( !v5 )
goto LABEL_15;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 344LL))(v5, a2);
if ( !(_DWORD)a2 )
{
cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 776));
cocos2d::CCSprite::setVisible(a1);
v6 = *(_QWORD *)(a1 + 752);
if ( !v6 )
goto LABEL_21;
goto LABEL_19;
}
if ( *(_DWORD *)(a1 + 1028) != 2065 || ((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1728LL))(a1) & 1) == 0 )
cocos2d::CCParticleSystem::resetSystem(*(_QWORD *)(a1 + 776));
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1416LL))(a1);
cocos2d::CCSprite::setVisible(a1);
v6 = *(_QWORD *)(a1 + 752);
if ( v6 )
{
LABEL_17:
v7 = *(_BYTE *)(a1 + 1020) ^ 1;
LABEL_20:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, v7 & 1);
}
LABEL_21:
result = *(_QWORD *)(a1 + 888);
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 344LL))(result, a2);
return result;
}