//
// GameObject::updateIsOriented from 0x10069b430 to 0x10069b4c1 (145 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x10007f52b
// > LevelEditorLayer::onPlaytest @ 0x1000c5cc0
//
// 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 12:35:16 +0000
//
__int64 __fastcall GameObject::updateIsOriented(__int64 a1)
{
__int64 result; // rax
*(_BYTE *)(a1 + 744) = 0;
result = *(unsigned int *)(a1 + 920);
switch ( *(_DWORD *)(a1 + 920) )
{
case 0:
case 0x15:
case 0x19:
if ( *(_BYTE *)(a1 + 1214) == 1 )
goto LABEL_3;
break;
case 7:
return result;
default:
LABEL_3:
result = (unsigned int)__ROR4__(
-1527099483 * (int)(*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 368LL))(a1)
+ 47721858,
1);
if ( (unsigned int)result >= 0x2D82D83 && *(float *)(a1 + 900) <= 0.0 )
{
*(_BYTE *)(a1 + 744) = 1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1568LL))(a1);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1328LL))(a1);
}
break;
}
return result;
}