//
// AnimatedGameObject::deactivateObject from 0x89c7d0 to 0x89c8c0 (240 bytes)
//
// 2 xrefs:
// > ??> @ 0x84fa0
// > ??> @ 0x1449990
//
// 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:56:12 +0000
//
__int64 __fastcall AnimatedGameObject::deactivateObject(AnimatedGameObject *this, char a2)
{
int v3; // w21
__int64 v4; // x0
__int64 v5; // x0
__int64 *v6; // x2
__int64 v7; // x0
__int64 v8; // x1
__int64 v9; // x1
__int64 v11; // [xsp+30h] [xbp+30h] BYREF
__int64 v12; // [xsp+38h] [xbp+38h]
__int64 v13; // [xsp+40h] [xbp+40h]
v3 = *((unsigned __int8 *)this + 773);
EnhancedGameObject::deactivateObject(this, a2);
if ( v3 && !*((_BYTE *)this + 773) )
{
v4 = *((_QWORD *)this + 183);
v11 = 0;
v12 = 0;
v5 = *(_QWORD *)(v4 + 648);
v13 = 0;
v6 = (__int64 *)(v5 + 400);
if ( (*(_BYTE *)(v5 + 400) & 1) != 0 )
{
std::string::__init(&v11, *(void **)(v5 + 416), *(_QWORD *)(v5 + 408));
}
else
{
v7 = *v6;
v8 = v6[1];
v13 = v6[2];
v11 = v7;
v12 = v8;
}
if ( (*((_BYTE *)this + 1496) & 1) != 0 )
{
**((_BYTE **)this + 189) = 0;
*((_QWORD *)this + 188) = 0;
}
else
{
*((_BYTE *)this + 1497) = 0;
*((_BYTE *)this + 1496) = 0;
}
std::string::reserve((__int64 *)this + 187, 0);
*((_QWORD *)this + 189) = v13;
v9 = v12;
*((_QWORD *)this + 187) = v11;
*((_QWORD *)this + 188) = v9;
SpriteAnimationManager::stopAnimations(*(SpriteAnimationManager **)(*((_QWORD *)this + 183) + 648LL));
}
return _stack_chk_guard;
}