//
// GameObject::activateObject from 0x44dabc to 0x44db28 (108 bytes)
//
// 1 xrefs:
// > AnimatedGameObject::activateObject @ 0x4ec5a8
//
// 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
//
GameObject *__fastcall GameObject::activateObject(GameObject *this)
{
GameObject *v1; // r4
int v2; // r6
int ObjectZLayer; // r0
int v4; // r0
*((_BYTE *)this + 862) = 0;
v1 = this;
if ( !*((_BYTE *)this + 657) && !*((_BYTE *)this + 834) )
{
v2 = *((unsigned __int8 *)this + 863);
*((_BYTE *)this + 657) = 1;
if ( !v2 )
{
(*(void (__fastcall **)(GameObject *, int))(*(_DWORD *)this + 172))(this, 1);
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)v1 + 640))(v1, 0);
if ( *((_DWORD *)v1 + 160) )
{
ObjectZLayer = GameObject::getObjectZLayer(v1);
v4 = GameObject::parentForZLayer(v1, ObjectZLayer, 1, 5);
(*(void (__fastcall **)(int, _DWORD, int))(*(_DWORD *)v4 + 232))(v4, *((_DWORD *)v1 + 160), -1000);
}
return GameObject::addColorSpriteToParent(v1, 0);
}
}
return this;
}