//
// TeleportPortalObject::setRotation from 0x140653a10 to 0x140653aa2 (146 bytes)
//
// 2 xrefs:
// > ??> @ 0x140823070
// > ??> @ 0x1409315e0
//
// 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 11:35:44 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall TeleportPortalObject::setRotation(__int64 a1, float a2)
{
__int64 v3; // rax
__int64 v4; // rcx
void *v5; // [rsp+50h] [rbp+18h]
v3 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v5 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v3 = qword_14090BFD0;
}
if ( !*(_BYTE *)(v3 + 738) || *(_DWORD *)(a1 + 1036) != 749 )
{
GameObject::setRotation(a1, a2);
v4 = *(_QWORD *)(a1 + 1864);
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1712LL))(v4);
}
}