//
// GameObject::activateObject from 0x76fb2c to 0x76fbdc (176 bytes)
//
// 49 xrefs:
// > AnimatedGameObject::activateObject @ 0x888ac0
// > ??> @ 0x41368
// > ??> @ 0x14337b8
// > ??> @ 0x14345a8
// > ??> @ 0x1434d88
// > ??> @ 0x1435598
// > ??> @ 0x14438f8
// > ??> @ 0x1444108
// > ??> @ 0x1444918
// > ??> @ 0x1445128
// > ??> @ 0x1445938
// > ??> @ 0x1446148
// > ??> @ 0x1446958
// > ??> @ 0x1447168
// > ??> @ 0x1447948
// > ??> @ 0x1448158
// > ??> @ 0x1448968
// > ??> @ 0x1449178
// > ??> @ 0x144a1d8
// > ??> @ 0x144a9e8
// > ??> @ 0x144b1f8
// > ??> @ 0x144ba08
// > ??> @ 0x144c218
// > ??> @ 0x144ca38
// > ??> @ 0x144d248
// > ??> @ 0x144da58
// > ??> @ 0x144e268
// > ??> @ 0x144ea78
// > ??> @ 0x144f288
// > ??> @ 0x144fa98
// > ??> @ 0x14502a8
// > ??> @ 0x1450ab8
// > ??> @ 0x14512c8
// > ??> @ 0x1451ad8
// > ??> @ 0x14522e8
// > ??> @ 0x1452af8
// > ??> @ 0x1453308
// > ??> @ 0x1453b18
// > ??> @ 0x1454328
// > ??> @ 0x1454b38
// > ??> @ 0x1455348
// > ??> @ 0x1455b58
// > ??> @ 0x1456368
// > ??> @ 0x1456b78
// > ??> @ 0x1457388
// > ??> @ 0x1457b98
// > ??> @ 0x14583a8
// > ??> @ 0x1458bb8
// > ??> @ 0x14593e8
//
// 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
//
GameObject *__fastcall GameObject::activateObject(GameObject *this)
{
int v1; // w2
GameObject *v2; // x19
int ObjectZLayer; // w0
__int64 v4; // x0
*((_BYTE *)this + 998) = 0;
if ( !*((_BYTE *)this + 773) && !*((_BYTE *)this + 970) )
{
v1 = *((unsigned __int8 *)this + 999);
*((_BYTE *)this + 773) = 1;
if ( !v1 )
{
v2 = this;
(*(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)this + 344LL))(this, 1);
(*(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)v2 + 1280LL))(v2, 0);
if ( *((_QWORD *)v2 + 94) )
{
ObjectZLayer = GameObject::getObjectZLayer(v2);
v4 = GameObject::parentForZLayer(v2, ObjectZLayer, 1, 5);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v4 + 464LL))(
v4,
*((_QWORD *)v2 + 94),
4294966296LL);
}
return (GameObject *)GameObject::addColorSpriteToParent((__int64)v2, 0);
}
}
return this;
}