//
// GameObject::updateIsOriented from 0x14029e640 to 0x14029e6d4 (148 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::onPlaytest @ 0x1403fec40
// > PlayLayer::addObject @ 0x14050c6dc
// > ??> @ 0x14091d8e8
//
// 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:29:14 +0000
//
__int64 __fastcall GameObject::updateIsOriented(__int64 *a1)
{
__int64 result; // rax
int v3; // ecx
float v4; // xmm0_4
__int64 v5; // rax
result = *((unsigned int *)a1 + 232);
*((_BYTE *)a1 + 744) = 0;
if ( (_DWORD)result != 7 )
{
if ( (unsigned int)result > 0x19 || (v3 = 35651585, !_bittest(&v3, result)) || *((_BYTE *)a1 + 1222) )
{
v4 = (*(float (__fastcall **)(__int64 *))(*a1 + 360))(a1);
result = (unsigned int)(90 * ((int)v4 / 90));
if ( (int)v4 != (_DWORD)result && *((float *)a1 + 227) <= 0.0 )
{
v5 = *a1;
*((_BYTE *)a1 + 744) = 1;
(*(void (__fastcall **)(__int64 *))(v5 + 1416))(a1);
return (*(__int64 (__fastcall **)(__int64 *))(*a1 + 1184))(a1);
}
}
}
return result;
}