//
// GameObject::activateObject from 0x14028dcd0 to 0x14028dd80 (176 bytes)
//
// 47 xrefs:
// > ??> @ 0x140754ae8
// > ??> @ 0x140755268
// > ??> @ 0x14075e630
// > ??> @ 0x14075ed38
// > ??> @ 0x1407d4c48
// > ??> @ 0x14081f140
// > ??> @ 0x14081f870
// > ??> @ 0x1408200b8
// > ??> @ 0x140820810
// > ??> @ 0x140820ec8
// > ??> @ 0x140821630
// > ??> @ 0x140821ce8
// > ??> @ 0x1408223c8
// > ??> @ 0x140822a80
// > ??> @ 0x140823390
// > ??> @ 0x140823ad8
// > ??> @ 0x140824190
// > ??> @ 0x140824988
// > ??> @ 0x140825040
// > ??> @ 0x1408256f8
// > ??> @ 0x140825f68
// > ??> @ 0x140826760
// > ??> @ 0x140826f08
// > ??> @ 0x140827638
// > ??> @ 0x140827cf0
// > ??> @ 0x140828448
// > ??> @ 0x140828c90
// > ??> @ 0x140829ac8
// > ??> @ 0x14082a248
// > ??> @ 0x14082a900
// > ??> @ 0x14082afb8
// > ??> @ 0x14082b9c8
// > ??> @ 0x14082c0f8
// > ??> @ 0x14082c7b0
// > ??> @ 0x14082ce68
// > ??> @ 0x14082d520
// > ??> @ 0x14082dcf0
// > ??> @ 0x14082e498
// > ??> @ 0x14082eb50
// > ??> @ 0x14082f208
// > ??> @ 0x14082f8c0
// > ??> @ 0x14082ff78
// > ??> @ 0x140830630
// > ??> @ 0x140830ce8
// > ??> @ 0x140831508
// > ??> @ 0x140831c88
// > ??> @ 0x14091d2f4
//
// This function is hookable on this platform (idp: pc, 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 11:29:05 +0000
//
void __fastcall GameObject::activateObject(__int64 a1, __int64 a2)
{
bool v2; // zf
__int64 v4; // r8
__int64 v5; // rdx
__int64 v6; // rax
v2 = *(_BYTE *)(a1 + 773) == 0;
*(_BYTE *)(a1 + 1006) = 0;
if ( v2 && !*(_BYTE *)(a1 + 978) )
{
v2 = *(_BYTE *)(a1 + 1007) == 0;
*(_BYTE *)(a1 + 773) = 1;
if ( v2 )
{
LOBYTE(a2) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 336LL))(a1, a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1128LL))(a1, 0);
if ( *(_QWORD *)(a1 + 752) )
{
v5 = *(unsigned int *)(a1 + 1132);
if ( !(_DWORD)v5 )
v5 = *(unsigned int *)(a1 + 1124);
LOBYTE(v4) = 1;
v6 = GameObject::parentForZLayer(a1, v5, v4, 5);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v6 + 456LL))(
v6,
*(_QWORD *)(a1 + 752),
4294966296LL);
}
GameObject::addColorSpriteToParent(a1, 0);
}
}
}