//
// TeleportPortalObject::removeFromGroup from 0x4e6b2e to 0x4e6b6a (60 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:05 +0000
//
_BYTE *__fastcall TeleportPortalObject::removeFromGroup(TeleportPortalObject *this, int a2)
{
_BYTE *result; // r0
result = (_BYTE *)GameManager::sharedState(this);
if ( !result[506] || *((_DWORD *)this + 223) != 749 )
{
GameObject::removeFromGroup((int)this, a2);
result = *((_BYTE **)this + 413);
if ( result )
return (_BYTE *)(*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)result + 940))(result, a2);
}
return result;
}