//
// TeleportPortalObject::addToGroup from 0x100387bc4 to 0x100387c3c (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007ff840
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
int __fastcall TeleportPortalObject::addToGroup(TeleportPortalObject *a1, int a2)
{
__int64 v2; // x19
int v4; // w21
TeleportPortalObject *m_orangePortal; // x0
v2 = *(_QWORD *)&a2;
if ( GameManager::sharedState()->m_editorEnabled && a1->m_objectID == 749 )
return 0;
v4 = GameObject::addToGroup(a1, v2);
m_orangePortal = a1->m_orangePortal;
if ( m_orangePortal )
((void (__fastcall *)(TeleportPortalObject *, __int64))m_orangePortal->addToGroup2)(m_orangePortal, v2);
return v4;
}