//
// EndPortalObject::setVisible from 0x140209550 to 0x14020959f (79 bytes)
//
// 2 xrefs:
// > ??> @ 0x140754f38
// > ??> @ 0x14091b344
//
// This function is hookable on this platform (idp: pc, 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:28:16 +0000
//
__int64 __fastcall EndPortalObject::setVisible(__int64 a1, unsigned __int8 a2)
{
char v4; // si
__int64 result; // rax
__int64 v6; // rdx
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 344LL))(a1);
result = GameObject::setVisible(a1, a2);
if ( a2 )
{
if ( !v4 )
{
LOBYTE(v6) = 1;
return EndPortalObject::updateEndPos(a1, v6);
}
}
return result;
}