//
// AnimatedGameObject::deactivateObject from 0x4f6f88 to 0x4f701e (150 bytes)
//
// 0 xrefs:
//
// 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:51:17 +0000
//
cocos2d::CCNode *__fastcall AnimatedGameObject::deactivateObject(AnimatedGameObject *this, _BOOL4 a2, int a3, int a4)
{
int v5; // r5
cocos2d::CCNode *result; // r0
int v7; // r8
AnimatedGameObject *v8; // r0
_BOOL4 v9; // r1
int v10; // r2
AnimatedGameObject *v11; // [sp+0h] [bp-10h] BYREF
_BOOL4 v12; // [sp+4h] [bp-Ch]
int v13; // [sp+8h] [bp-8h]
int v14; // [sp+Ch] [bp-4h]
v11 = this;
v12 = a2;
v13 = a3;
v14 = a4;
v5 = *((unsigned __int8 *)this + 657);
result = (cocos2d::CCNode *)EnhancedGameObject::deactivateObject(this, a2);
if ( v5 )
{
v7 = *((unsigned __int8 *)this + 657);
if ( !*((_BYTE *)this + 657) )
{
std::string::basic_string((int *)&v11, *(_DWORD *)(*((_DWORD *)this + 319) + 532) + 304);
if ( (*((_BYTE *)this + 1292) & 1) != 0 )
{
**((_BYTE **)this + 325) = v7;
*((_DWORD *)this + 324) = v7;
}
else
{
*((_BYTE *)this + 1293) = 0;
*((_BYTE *)this + 1292) = 0;
}
std::string::reserve((int *)this + 323, 0);
v8 = v11;
v9 = v12;
v10 = v13;
v11 = nullptr;
v12 = 0;
v13 = 0;
*((_DWORD *)this + 323) = v8;
*((_DWORD *)this + 324) = v9;
*((_DWORD *)this + 325) = v10;
std::string::~string((int)&v11);
return SpriteAnimationManager::stopAnimations(*(SpriteAnimationManager **)(*((_DWORD *)this + 319) + 532));
}
}
return result;
}