//
// GameObject::updateIsOriented from 0x44e448 to 0x44e498 (80 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x40025e
// > LevelEditorLayer::onPlaytest @ 0x4685c0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:36 +0000
//
int __fastcall GameObject::updateIsOriented(int this)
{
float *v1; // r4
int v2; // r0
int v3; // r1
*(_BYTE *)(this + 636) = 0;
v1 = (float *)this;
if ( *(_DWORD *)(this + 784) != 7 )
{
this = GameObject::canRotateFree((GameObject *)this);
if ( this )
{
v2 = (int)(*(float (__fastcall **)(float *))(*(_DWORD *)v1 + 184))(v1);
v3 = v2 % 90;
this = v2 / 90;
if ( v3 )
{
if ( v1[191] <= 0.0 )
return GameObject::calculateOrientedBox((GameObject *)v1);
}
}
}
return this;
}