//
// AnimatedGameObject::deactivateObject from 0x750a08 to 0x750aec (228 bytes)
//
// 2 xrefs:
// > ??> @ 0x616e0
// > ??> @ 0x1168310
//
// 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; // w21
__int64 v4; // [xsp+40h] [xbp+40h] BYREF
m_isActivated = a1->m_isActivated;
EnhancedGameObject::deactivateObject(a1, a2);
if ( m_isActivated && !a1->m_isActivated )
{
sub_D18D28(&v4);
sub_D163D4(&a1->m_currentAnimation, &v4);
if ( (__int64 *)(v4 - 24) != &qword_124B6B0 )
sub_74B3A8((void *)(v4 - 24));
SpriteAnimationManager::stopAnimations(a1->m_animatedSprite->m_animationManager);
}
}