//
// AnimatedGameObject::deactivateObject from 0x3e4718 to 0x3e4782 (106 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void AnimatedGameObject::deactivateObject(AnimatedGameObject *a1, bool a2)
{
_BOOL4 m_isActivated; // r5
_DWORD v4[2]; // [sp+0h] [bp-8h] BYREF
v4[0] = a1;
v4[1] = a2;
m_isActivated = a1->m_isActivated;
EnhancedGameObject::deactivateObject(a1, a2);
if ( m_isActivated && !a1->m_isActivated )
{
sub_775C20(v4);
sub_774794(&a1->m_currentAnimation, v4);
sub_774008(v4);
SpriteAnimationManager::stopAnimations(a1->m_animatedSprite->m_animationManager);
}
}