//
// TeleportPortalObject::addToGroup from 0x75093c to 0x7509ac (112 bytes)
//
// 2 xrefs:
// > ??> @ 0xb2e00
// > ??> @ 0x116ac70
//
// 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
//
int TeleportPortalObject::addToGroup(TeleportPortalObject *a1, int a2)
{
int v4; // w21
TeleportPortalObject *m_orangePortal; // x0
if ( !GameManager::sharedState()->m_editorEnabled || (v4 = 0, a1->m_objectID != 749) )
{
v4 = GameObject::addToGroup(a1, a2);
m_orangePortal = a1->m_orangePortal;
if ( m_orangePortal )
m_orangePortal->addToGroup2(m_orangePortal, a2);
}
return v4;
}