//
// GameObject::getObjectDirection from 0x44d784 to 0x44d7bc (56 bytes)
//
// 3 xrefs:
// > LevelTools::sortChannelOrderObjects @ 0x41f6a2
// > LevelEditorLayer::updateGameObjects @ 0x46cf3c
// > LevelEditorLayer::updateGameObjects @ 0x46cf46
//
// 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:35 +0000
//
int __fastcall GameObject::getObjectDirection(GameObject *this)
{
unsigned int v2; // r3
int result; // r0
int v4; // r3
GameObject::determineSlopeDirection(this);
v2 = *((_DWORD *)this + 237) - 2;
if ( v2 > 5 )
return 4;
result = 1;
v4 = 1 << v2;
if ( (v4 & 0x24) != 0 )
return 2;
if ( (v4 & 0x18) == 0 )
{
if ( (v4 & 3) != 0 )
return 3;
else
return 4;
}
return result;
}