//
// TeleportPortalObject::addToGroup from 0x8702c8 to 0x870338 (112 bytes)
//
// 2 xrefs:
// > ??> @ 0xe9dd0
// > ??> @ 0x144c340
//
// 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::addToGroup(TeleportPortalObject *this, unsigned int a2)
{
unsigned int v4; // w21
__int64 v5; // x0
if ( !*(_BYTE *)(GameManager::sharedState(this) + 706) || (v4 = 0, *((_DWORD *)this + 257) != 749) )
{
v4 = GameObject::addToGroup(this, a2);
v5 = *((_QWORD *)this + 231);
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1872LL))(v5, a2);
}
return v4;
}