//
// EnhancedGameObject::deactivateObject from 0x100264714 to 0x100264788 (116 bytes)
//
// 42 xrefs:
// > ParticleGameObject::deactivateObject @ 0x100381d88
// > AnimatedGameObject::deactivateObject @ 0x100383ea4
// > ??> @ 0x1007d0580
// > ??> @ 0x1007f5e38
// > ??> @ 0x1007f6630
// > ??> @ 0x1007f6e28
// > ??> @ 0x1007f7620
// > ??> @ 0x1007f7e18
// > ??> @ 0x1007f8610
// > ??> @ 0x1007f9e00
// > ??> @ 0x1007fa668
// > ??> @ 0x1007fae78
// > ??> @ 0x1007fb688
// > ??> @ 0x1007fbe98
// > ??> @ 0x1007fc6a8
// > ??> @ 0x1007fceb8
// > ??> @ 0x1007fd6c8
// > ??> @ 0x1007fded8
// > ??> @ 0x1007fe6e8
// > ??> @ 0x1007feef8
// > ??> @ 0x1007ff720
// > ??> @ 0x1007fff78
// > ??> @ 0x1008007a0
// > ??> @ 0x100800fc8
// > ??> @ 0x1008017f0
// > ??> @ 0x100802018
// > ??> @ 0x100802828
// > ??> @ 0x100803038
// > ??> @ 0x100803848
// > ??> @ 0x100804058
// > ??> @ 0x100804868
// > ??> @ 0x100805078
// > ??> @ 0x100805888
// > ??> @ 0x100806098
// > ??> @ 0x1008068a8
// > ??> @ 0x1008070b8
// > ??> @ 0x1008078c8
// > ??> @ 0x1008080d8
// > ??> @ 0x1008088e8
// > ??> @ 0x1008090f8
// > ??> @ 0x100809908
// > ??> @ 0x10080a118
//
// 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 __fastcall 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);
}
}