//
// TeleportPortalObject::removeFromGroup from 0x870338 to 0x870394 (92 bytes)
//
// 2 xrefs:
// > ??> @ 0x5e900
// > ??> @ 0x144c348
//
// 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:55:45 +0000
//
__int64 __fastcall TeleportPortalObject::removeFromGroup(TeleportPortalObject *this, unsigned int a2)
{
__int64 result; // x0
if ( !*(_BYTE *)(GameManager::sharedState(this) + 706)
|| (result = *((unsigned int *)this + 257), (_DWORD)result != 749) )
{
GameObject::removeFromGroup((__int64)this, a2);
result = *((_QWORD *)this + 231);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 1880LL))(result, a2);
}
return result;
}