//
// TeleportPortalObject::removeFromGroup from 0x140653b90 to 0x140653c1e (142 bytes)
//
// 2 xrefs:
// > ??> @ 0x1408234c0
// > ??> @ 0x1409315f8
//
// 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:35:44 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall TeleportPortalObject::removeFromGroup(__int64 a1, unsigned int a2)
{
__int64 result; // rax
__int64 v5; // rcx
void *v6; // [rsp+40h] [rbp+18h]
result = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
result = qword_14090BFD0;
}
if ( !*(_BYTE *)(result + 738) || *(_DWORD *)(a1 + 1036) != 749 )
{
result = GameObject::removeFromGroup(a1, a2);
v5 = *(_QWORD *)(a1 + 1864);
if ( v5 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1728LL))(v5, a2);
}
return result;
}