//
// TeleportPortalObject::addToGroup from 0x10019e890 to 0x10019e8e3 (83 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ad1f58
//
// This function is hookable on this platform (idp: pc, 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:25:58 +0000
//
__int64 __fastcall TeleportPortalObject::addToGroup(__int64 a1, __int64 a2, __int64 a3)
{
double v3; // xmm0_8
__int64 v4; // rax
__int64 result; // rax
__int64 v6; // rdi
unsigned int v7; // ebx
*(_QWORD *)&v3 = GameManager::sharedState(a1, a2, a3).u64[0];
if ( *(_BYTE *)(v4 + 706) != 1 || (result = 0, *(_DWORD *)(a1 + 1028) != 749) )
{
result = GameObject::addToGroup(a1, (unsigned int)a2, v3);
v6 = *(_QWORD *)(a1 + 1848);
if ( v6 )
{
v7 = result;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 1872LL))(v6, (unsigned int)a2);
return v7;
}
}
return result;
}