//
// TeleportPortalObject::setRotation from 0x1404b2520 to 0x1404b25af (143 bytes)
//
// 2 xrefs:
// > ??> @ 0x1406111d0
// > ??> @ 0x1406dca1c
//
// 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
//
// Hidden C++ exception states: #wind=1
void TeleportPortalObject::setRotation(TeleportPortalObject *a1, float a2)
{
__int64 v3; // rax
TeleportPortalObject *m_orangePortal; // rcx
void *v5; // [rsp+50h] [rbp+18h]
v3 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
if ( !*(_BYTE *)(v3 + 698) || a1->m_objectID != 749 )
{
GameObject::setRotation(a1, a2);
m_orangePortal = a1->m_orangePortal;
if ( m_orangePortal )
((void (__fastcall *)(TeleportPortalObject *))m_orangePortal->setRotation2)(m_orangePortal);
}
}