//
// TeleportPortalObject::addToGroup from 0x4e6af0 to 0x4e6b2e (62 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
//
int __fastcall TeleportPortalObject::addToGroup(TeleportPortalObject *this, int a2)
{
int v4; // r5
int v5; // r0
if ( *(_BYTE *)(GameManager::sharedState(this) + 506) && *((_DWORD *)this + 223) == 749 )
return 0;
v4 = GameObject::addToGroup(this, a2);
v5 = *((_DWORD *)this + 413);
if ( v5 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 936))(v5, a2);
return v4;
}