//
// EnhancedGameObject::deactivateObject from 0x641ba8 to 0x641c10 (104 bytes)
//
// 43 xrefs:
// > ParticleGameObject::deactivateObject @ 0x750790
// > AnimatedGameObject::deactivateObject @ 0x750a30
// > ??> @ 0xb8c08
// > ??> @ 0x1154190
// > ??> @ 0x1162340
// > ??> @ 0x1162b40
// > ??> @ 0x1163340
// > ??> @ 0x1163b40
// > ??> @ 0x1164340
// > ??> @ 0x1164b40
// > ??> @ 0x1165340
// > ??> @ 0x1166b10
// > ??> @ 0x1167310
// > ??> @ 0x1167b10
// > ??> @ 0x1168b50
// > ??> @ 0x1169350
// > ??> @ 0x1169b50
// > ??> @ 0x116a350
// > ??> @ 0x116ab50
// > ??> @ 0x116b360
// > ??> @ 0x116bb60
// > ??> @ 0x116c360
// > ??> @ 0x116cb60
// > ??> @ 0x116d360
// > ??> @ 0x116db60
// > ??> @ 0x116e360
// > ??> @ 0x116eb60
// > ??> @ 0x116f360
// > ??> @ 0x116fb60
// > ??> @ 0x1170360
// > ??> @ 0x1170b60
// > ??> @ 0x1171360
// > ??> @ 0x1171b60
// > ??> @ 0x1172360
// > ??> @ 0x1172b60
// > ??> @ 0x1173360
// > ??> @ 0x1173b60
// > ??> @ 0x1174360
// > ??> @ 0x1174b60
// > ??> @ 0x1175360
// > ??> @ 0x1175b60
// > ??> @ 0x1176360
// > ??> @ 0x1176b60
//
// 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 EnhancedGameObject::deactivateObject(EnhancedGameObject *a1, bool a2)
{
_BOOL4 m_isActivated; // w20
m_isActivated = a1->m_isActivated;
GameObject::deactivateObject(a1, a2);
if ( m_isActivated && !a1->m_isActivated && a1->m_animateOnTrigger && a1->m_hasCustomAnimation )
{
((void (__fastcall *)(EnhancedGameObject *, __int64, float))a1->updateSyncedAnimation)(a1, 0xFFFFFFFFLL, 0.0);
EnhancedGameObject::waitForAnimationTrigger(a1);
}
}