//
// TeleportPortalObject::addToGroup from 0x10042e100 to 0x10042e178 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x100957bc0
//
// 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 11:05:05 +0000
//
__int64 __fastcall TeleportPortalObject::addToGroup(__int64 a1, __int64 a2)
{
__int64 v4; // x21
__int64 v5; // x0
if ( *(_BYTE *)(GameManager::sharedState() + 706) == 1 && *(_DWORD *)(a1 + 1028) == 749 )
return 0;
v4 = GameObject::addToGroup(a1, a2);
v5 = *(_QWORD *)(a1 + 1848);
if ( v5 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1872LL))(v5, a2);
return v4;
}