//
// GameObject::deactivateObject from 0x44bdc8 to 0x44be6c (164 bytes)
//
// 1 xrefs:
// > EnhancedGameObject::deactivateObject @ 0x44c088
//
// 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:34 +0000
//
_BYTE *__fastcall GameObject::deactivateObject(_BYTE *this, int a2)
{
_BYTE *v2; // r4
int v3; // r3
int v4; // r3
int v5; // r0
v2 = this;
if ( a2 )
*(this + 862) = 1;
if ( *(this + 862) )
{
if ( *(this + 657) )
{
v3 = *(_DWORD *)this;
*(this + 657) = 0;
(*(void (__fastcall **)(_BYTE *, _DWORD))(v3 + 172))(this, 0);
(*(void (__fastcall **)(_BYTE *, _DWORD))(*(_DWORD *)v2 + 264))(v2, 0);
v4 = *((_DWORD *)v2 + 218);
v2[968] = 0;
if ( v4 != -1 )
{
*((_WORD *)v2 + 436) = -1;
*((_WORD *)v2 + 437) = -1;
v2[880] = 1;
(*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)v2 + 720))(v2, 1065353216);
(*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)v2 + 724))(v2, 1065353216);
}
v5 = *((_DWORD *)v2 + 160);
if ( v5 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 264))(v5, 0);
this = *((_BYTE **)v2 + 189);
if ( this )
{
if ( !v2[552] )
return (_BYTE *)(*(int (__fastcall **)(_BYTE *))(*(_DWORD *)this + 264))(this);
}
}
}
else
{
*(this + 862) = 1;
}
return this;
}