//
// GameObject::updateIsOriented from 0x770adc to 0x770b6c (144 bytes)
//
// 3 xrefs:
// > PlayLayer::addObject @ 0x6f41c4
// > LevelEditorLayer::onPlaytest @ 0x7964ec
// > ??> @ 0x1051a8
//
// This function is hookable on this platform (idp: arm, 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:53:12 +0000
//
__int64 __fastcall GameObject::updateIsOriented(__int64 this)
{
float *v1; // x19
*(_BYTE *)(this + 744) = 0;
if ( *(_DWORD *)(this + 920) != 7 )
{
v1 = (float *)this;
this = (unsigned __int8)GameObject::canRotateFree((GameObject *)this);
if ( (_BYTE)this )
{
this = (unsigned int)((int)(*(float (__fastcall **)(float *))(*(_QWORD *)v1 + 368LL))(v1) % 90);
if ( (_DWORD)this )
{
if ( v1[225] <= 0.0 )
return GameObject::calculateOrientedBox((GameObject *)v1);
}
}
}
return this;
}